diff options
| author | Manolo Gouy <Manolo> | 2017-06-28 13:33:53 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-28 13:33:53 +0000 |
| commit | 322b62a9f126987914193dedbc892b8e5c17f453 (patch) | |
| tree | 2fefd2fb327f9caaed1f1d7798818767598db136 /src/drivers/WinAPI | |
| parent | 9041a3dc70aa376896f992c43ec1a6d63a9a8d1a (diff) | |
HiDPI support: keep window's cursor after rescaling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H | 3 | ||||
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H index acd8f7603..f1d1f6e23 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H @@ -61,6 +61,7 @@ class FL_EXPORT Fl_WinAPI_Window_Driver : public Fl_Window_Driver HICON big_icon; HICON small_icon; }; + Fl_Cursor current_cursor_; private: void shape_bitmap_(Fl_Image* b); void shape_alpha_(Fl_Image* img, int offset); @@ -100,6 +101,8 @@ public: // --- window cursor stuff virtual int set_cursor(Fl_Cursor); virtual int set_cursor(const Fl_RGB_Image*, int, int); + virtual void reuse_cursor(fl_uintptr_t); + virtual fl_uintptr_t current_cursor(); virtual void shape(const Fl_Image* img); virtual void icons(const Fl_RGB_Image *icons[], int count); diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index b81a520d1..af5a04b6e 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -47,6 +47,8 @@ Fl_WinAPI_Window_Driver::Fl_WinAPI_Window_Driver(Fl_Window *win) { icon_ = new icon_data; memset(icon_, 0, sizeof(icon_data)); + cursor = NULL; + current_cursor_ = FL_CURSOR_DEFAULT; } |
