diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 20:08:48 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 20:08:48 +0000 |
| commit | 7ed9960a28c66d4f21d17b9d17eaaeb92525d4e0 (patch) | |
| tree | 5c4c774c9cece2bb25c00e584280f394f78a282e /src/Fl_Text_Display.cxx | |
| parent | 6c3555c0dea278545b3aa43f753c62fae6e3790a (diff) | |
STR 2677: new cursor shape for Fl_Text_Display
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index fee914a3e..358da7571 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -2087,6 +2087,10 @@ void Fl_Text_Display::draw_cursor( int X, int Y ) { segs[ 2 ].x1 = right; segs[ 2 ].y1 = bot; segs[ 2 ].x2 = X; segs[ 2 ].y2 = bot; segs[ 3 ].x1 = X; segs[ 3 ].y1 = bot; segs[ 3 ].x2 = X; segs[ 3 ].y2 = Y; nSegs = 4; + } else if ( mCursorStyle == SIMPLE_CURSOR ){ + segs[ 0 ].x1 = X; segs[ 0 ].y1 = Y; segs[ 0 ].x2 = X; segs[ 0 ].y2 = bot; + segs[ 1 ].x1 = X+1; segs[ 1 ].y1 = Y; segs[ 1 ].x2 = X+1; segs[ 1 ].y2 = bot; + nSegs = 2; } fl_color( mCursor_color ); |
