summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-18 14:31:07 +0000
committerManolo Gouy <Manolo>2016-04-18 14:31:07 +0000
commit0629b40afd8fc49ef2d9db898d190e3a1a508d8d (patch)
treed339e4c02fa7a222446dc441398966a7ab07c05c /src/Fl_win32.cxx
parent516d0e5f9ca1850ad76c81c10c5e3c415f21c5cd (diff)
Move set_cursor() member functions from class Fl_X to classes Fl_Window_Driver and derived.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 721f66e31..a96ad3773 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1383,7 +1383,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
case WM_SETCURSOR:
if (LOWORD(lParam) == HTCLIENT) {
while (window->parent()) window = window->window();
- SetCursor(Fl_X::i(window)->cursor);
+ SetCursor(((Fl_WinAPI_Window_Driver*)window->driver())->cursor);
return 0;
}
break;
@@ -1800,8 +1800,9 @@ Fl_X* Fl_X::make(Fl_Window* w) {
x->w = w; w->i = x;
x->region = 0;
x->private_dc = 0;
- x->cursor = LoadCursor(NULL, IDC_ARROW);
- x->custom_cursor = 0;
+ Fl_WinAPI_Window_Driver *driver = (Fl_WinAPI_Window_Driver*)w->driver();
+ driver->cursor = LoadCursor(NULL, IDC_ARROW);
+ driver->custom_cursor = 0;
if (!fl_codepage) fl_get_codepage();
WCHAR *lab = NULL;
@@ -2160,7 +2161,7 @@ void Fl_WinAPI_Window_Driver::set_icons() {
# define IDC_HAND MAKEINTRESOURCE(32649)
#endif // !IDC_HAND
-int Fl_X::set_cursor(Fl_Cursor c) {
+int Fl_WinAPI_Window_Driver::set_cursor(Fl_Cursor c) {
LPSTR n;
HCURSOR new_cursor;
@@ -2211,7 +2212,7 @@ int Fl_X::set_cursor(Fl_Cursor c) {
return 1;
}
-int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
+int Fl_WinAPI_Window_Driver::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
HCURSOR new_cursor;
new_cursor = image_to_icon(image, false, hotx, hoty);