summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 89d4d4685..7e99d76c0 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -2294,7 +2294,6 @@ int Fl_WinAPI_Window_Driver::set_cursor(Fl_Cursor c) {
custom_cursor = 0;
SetCursor(cursor);
- current_cursor_ = c;
return 1;
}
@@ -2318,12 +2317,11 @@ int Fl_WinAPI_Window_Driver::set_cursor(const Fl_RGB_Image *image, int hotx, int
}
void Fl_WinAPI_Window_Driver::reuse_cursor(fl_uintptr_t c) {
- // calling SetCursor(cursor) does not work, so we call the crossplatform API
- pWindow->cursor((Fl_Cursor)c);
+ SetCursor((HCURSOR)c);
}
fl_uintptr_t Fl_WinAPI_Window_Driver::current_cursor() {
- return (fl_uintptr_t)current_cursor_;
+ return (fl_uintptr_t)cursor;
}