console text underscore would draw outside the view for larger font sizes.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Nov 2010 00:56:18 +0000 (00:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Nov 2010 00:56:18 +0000 (00:56 +0000)
source/blender/editors/space_console/console_draw.c
source/blender/editors/space_info/textview.c

index 5a9c3249abcfd78383a4a9b1fa7a46de409d9194..6d7eb45f31ed2e39ca42131b081a7a36e1c67d7f 100644 (file)
@@ -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);
index 343130d96cedbede7c2966e5be6911772f76df2a..0cdace3039c0463280260242ecdcc3eb8d97b91b 100644 (file)
@@ -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];