Revision: 53211
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53211
Author:   nazgul
Date:     2012-12-20 16:37:07 +0000 (Thu, 20 Dec 2012)
Log Message:
-----------
Better cursor centering for text editor

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_text/text_draw.c

Modified: trunk/blender/source/blender/editors/space_text/text_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_draw.c 2012-12-20 
15:49:59 UTC (rev 53210)
+++ trunk/blender/source/blender/editors/space_text/text_draw.c 2012-12-20 
16:37:07 UTC (rev 53211)
@@ -1045,7 +1045,7 @@
                
                UI_ThemeColor(TH_SHADE2);
                x = st->showlinenrs ? TXT_OFFSET + TEXTXLOC : TXT_OFFSET;
-               y = ar->winy - 2;
+               y = ar->winy;
 
                if (vcurl == vsell) {
                        y -= vcurl * lheight;
@@ -1120,7 +1120,7 @@
                /* Draw the cursor itself (we draw the sel. cursor as this is 
the leading edge) */
                x = st->showlinenrs ? TXT_OFFSET + TEXTXLOC : TXT_OFFSET;
                x += vselc * st->cwidth;
-               y = ar->winy - 2 - vsell * lheight;
+               y = ar->winy - vsell * lheight;
                
                if (st->overwrite) {
                        char ch = text->sell->line[text->selc];

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to