[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60060] trunk/blender/source/blender/ editors/space_info/textview.c: correct brackground rectangle drawing in info view.

Campbell Barton ideasman42 at gmail.com
Thu Sep 12 05:38:27 CEST 2013


Revision: 60060
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60060
Author:   campbellbarton
Date:     2013-09-12 03:38:25 +0000 (Thu, 12 Sep 2013)
Log Message:
-----------
correct brackground rectangle drawing in info view. need to compensate for recent change in text offset.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_info/textview.c

Modified: trunk/blender/source/blender/editors/space_info/textview.c
===================================================================
--- trunk/blender/source/blender/editors/space_info/textview.c	2013-09-12 03:02:50 UTC (rev 60059)
+++ trunk/blender/source/blender/editors/space_info/textview.c	2013-09-12 03:38:25 UTC (rev 60060)
@@ -123,7 +123,6 @@
 static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str_len,
                                const unsigned char fg[3], const unsigned char bg[3], const unsigned char bg_sel[4])
 {
-	int rct_ofs = cdc->lheight / 4;
 	int tot_lines;            /* total number of lines for wrapping */
 	int *offsets;             /* offsets of line beginnings for wrapping */
 	int y_next;
@@ -187,7 +186,7 @@
 		
 		if (bg) {
 			glColor3ubv(bg);
-			glRecti(0, cdc->xy[1] - rct_ofs, cdc->winx, (cdc->xy[1] + (cdc->lheight * tot_lines)) + rct_ofs);
+			glRecti(0, cdc->xy[1], cdc->winx, (cdc->xy[1] + (cdc->lheight * tot_lines)));
 		}
 
 		glColor3ubv(fg);
@@ -235,7 +234,7 @@
 
 		if (bg) {
 			glColor3ubv(bg);
-			glRecti(0, cdc->xy[1] - rct_ofs, cdc->winx, cdc->xy[1] + cdc->lheight - rct_ofs);
+			glRecti(0, cdc->xy[1], cdc->winx, cdc->xy[1] + cdc->lheight);
 		}
 
 		glColor3ubv(fg);




More information about the Bf-blender-cvs mailing list