diff options
Diffstat (limited to 'source/blender/editors/space_text/text_draw.c')
-rw-r--r-- | source/blender/editors/space_text/text_draw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c index 462b619f497..9bcaf04e520 100644 --- a/source/blender/editors/space_text/text_draw.c +++ b/source/blender/editors/space_text/text_draw.c @@ -47,6 +47,7 @@ #include "ED_text.h" #include "BIF_gl.h" +#include "BIF_glutil.h" #include "UI_interface.h" #include "UI_resources.h" @@ -1433,15 +1434,18 @@ void draw_text_main(SpaceText *st, ARegion *ar) } if (st->flags & ST_SHOW_MARGIN) { - UI_ThemeColor(TH_HILITE); - margin_column_x = x + st->cwidth * (st->margin_column - st->left); if (margin_column_x >= x) { + /* same color as line number background */ + UI_ThemeColor(TH_GRID); + + setlinestyle(1); glBegin(GL_LINES); glVertex2i(margin_column_x, 0); glVertex2i(margin_column_x, ar->winy - 2); glEnd(); + setlinestyle(0); } } |