diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-27 03:56:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-27 03:56:18 +0300 |
commit | 4a804855b26bd764b7752e673052c0001dce32a1 (patch) | |
tree | 1c8426865bdcbc3435c7047afe31b5278499499e /source/blender | |
parent | 5e6c0bcded19bfbbe08ea1fcbaee85176b385b0c (diff) |
console text underscore would draw outside the view for larger font sizes.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_console/console_draw.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_info/textview.c | 2 |
2 files changed, 2 insertions, 1 deletions
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); diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c index 343130d96ce..0cdace3039c 100644 --- a/source/blender/editors/space_info/textview.c +++ b/source/blender/editors/space_info/textview.c @@ -217,7 +217,7 @@ int textview_draw(TextViewContext *tvc, int draw, int mval[2], void **mouse_pick { ConsoleDrawContext cdc= {0}; - int x_orig=CONSOLE_DRAW_MARGIN, y_orig=CONSOLE_DRAW_MARGIN; + int x_orig=CONSOLE_DRAW_MARGIN, y_orig=CONSOLE_DRAW_MARGIN + tvc->lheight/6; int xy[2], y_prev; int sel[2]= {-1, -1}; /* defaults disabled */ unsigned char fg[3], bg[3]; |