diff options
| author | Manolo Gouy <Manolo> | 2016-04-02 09:34:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-02 09:34:17 +0000 |
| commit | ab5252071c37b32397565a5d846de17984b75c3a (patch) | |
| tree | 8ecf39a75d0152f5f0712e84061cf68a2318511f /src/drivers | |
| parent | 4d4b43a6bcbcd3926b3dc1fc220c3e4b5b7a8c94 (diff) | |
Move Fl_X::next_marked_length to the Fl_Cocoa_Screen_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H | 1 | ||||
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H index 34bf6b6ce..a1f278a63 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H @@ -54,6 +54,7 @@ protected: static bool insertion_point_location_is_valid; public: Fl_Cocoa_Screen_Driver(); + static int next_marked_length; // next length of marked text after current marked text will have been replaced // --- display management // --- screen configuration virtual void init(); diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx index a048bb4b2..1f68fd8d8 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx @@ -31,7 +31,7 @@ extern "C" void NSBeep(void); extern double fl_mac_flush_and_wait(double time_to_wait); extern int fl_ready(); -int Fl_X::next_marked_length = 0; +int Fl_Cocoa_Screen_Driver::next_marked_length = 0; /** Creates a driver that manages all screen and display related calls. @@ -266,7 +266,7 @@ bool Fl_Cocoa_Screen_Driver::insertion_point_location_is_valid = false; void Fl_Cocoa_Screen_Driver::reset_marked_text() { Fl::compose_state = 0; - Fl_X::next_marked_length = 0; + next_marked_length = 0; insertion_point_location_is_valid = false; } @@ -297,7 +297,7 @@ int Fl_Cocoa_Screen_Driver::compose(int &del) { !has_text_key ; if (condition) { del = 0; return 0;} // this stuff is to be treated as a function key del = Fl::compose_state; - Fl::compose_state = Fl_X::next_marked_length; + Fl::compose_state = next_marked_length; return 1; } |
