From 4a804855b26bd764b7752e673052c0001dce32a1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 27 Nov 2010 00:56:18 +0000 Subject: console text underscore would draw outside the view for larger font sizes. --- source/blender/editors/space_console/console_draw.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_console') diff --git a/source/blender/editors/space_console/console_draw.c b/source/blender/editors/space_console/console_draw.c index 5a9c3249abc..6d7eb45f31e 100644 --- a/source/blender/editors/space_console/console_draw.c +++ b/source/blender/editors/space_console/console_draw.c @@ -154,6 +154,7 @@ static int console_textview_line_color(struct TextViewContext *tvc, unsigned cha int prompt_len= strlen(sc->prompt); int xy[2] = {CONSOLE_DRAW_MARGIN, CONSOLE_DRAW_MARGIN}; const int cursor = ((ConsoleLine *)sc->history.last)->cursor; + xy[1] += tvc->lheight/6; /* cursor */ UI_GetThemeColor3ubv(TH_CONSOLE_CURSOR, (char *)fg); -- cgit v1.2.3