summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Editor.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-31 17:25:18 +0000
committerManolo Gouy <Manolo>2016-03-31 17:25:18 +0000
commit2de2f5496820f91c81df65834eee268126086209 (patch)
tree1ee88071287b849a08467bee48f7c281b38d1bae /src/Fl_Text_Editor.cxx
parentff83e355b09f07848257d8fef7a12705347955cc (diff)
Move the marked text support member functions from Fl_System_Driver to Fl_Screen_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
-rw-r--r--src/Fl_Text_Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index c43fb518c..5e4735866 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -23,6 +23,7 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Text_Editor.H>
+#include <FL/Fl_Screen_Driver.H>
#include <FL/fl_ask.H>
#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform editor
@@ -586,7 +587,7 @@ int Fl_Text_Editor::handle(int event) {
case FL_UNFOCUS:
show_cursor(mCursorOn); // redraws the cursor
- if (Fl_System_Driver::driver()->has_marked_text() && buffer()->selected() && Fl::compose_state) {
+ if (Fl::screen_driver()->has_marked_text() && buffer()->selected() && Fl::compose_state) {
int pos = insert_position();
buffer()->select(pos, pos);
Fl::reset_marked_text();