Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-12 07:38:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-12 07:38:25 +0400
commit664de20eee86c4eaa4cdbe7263e22c1ba3716634 (patch)
tree329e96c9879d6d1b7c198f66084c01f17eedc30c /source/blender/editors/space_info/textview.c
parent8beb565c5992e239eb0f618f9df264de821d4cf7 (diff)
correct brackground rectangle drawing in info view. need to compensate for recent change in text offset.
Diffstat (limited to 'source/blender/editors/space_info/textview.c')
-rw-r--r--source/blender/editors/space_info/textview.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index e23f792d0b5..d4d45af6431 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -123,7 +123,6 @@ static int console_wrap_offsets(const char *str, int len, int width, int *lines,
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 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str
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 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str
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);