diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-14 08:11:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-14 08:14:02 +0300 |
commit | f621f03e4b252d5ef1d86b9306a22628da3160ce (patch) | |
tree | 21f4630ba495ca2eaa6ea1e7accf6be1bfd762d3 /source/blender/editors/space_info/textview.h | |
parent | bbe6b661df08bbd0c73a2b89bffe4525667aab9b (diff) |
Fix console cursor offset
Also remove hard coded offsets.
Diffstat (limited to 'source/blender/editors/space_info/textview.h')
-rw-r--r-- | source/blender/editors/space_info/textview.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/space_info/textview.h b/source/blender/editors/space_info/textview.h index 6fcd9d30abe..a33ed91570d 100644 --- a/source/blender/editors/space_info/textview.h +++ b/source/blender/editors/space_info/textview.h @@ -27,10 +27,6 @@ typedef struct TextViewContext { /** Text selection, when a selection range is in use. */ int sel_start, sel_end; - /* view settings */ - int cwidth; /* shouldnt be needed! */ - int columns; /* shouldnt be needed! */ - int row_vpadding; /** Area to draw text: (0, 0, winx, winy) with a margin applied and scroll-bar subtracted. */ @@ -56,7 +52,7 @@ typedef struct TextViewContext { int *icon, unsigned char icon_fg[4], unsigned char icon_bg[4]); - void (*draw_cursor)(struct TextViewContext *tvc); + void (*draw_cursor)(struct TextViewContext *tvc, int cwidth, int columns, int descender); /* constant theme colors */ void (*const_colors)(struct TextViewContext *tvc, unsigned char bg_sel[4]); void *iter; |