diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 4 | ||||
| -rw-r--r-- | src/Fl_x.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/X11/Fl_X11_Window_Driver.H | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index f1f4a38db..2baec35e0 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1856,7 +1856,7 @@ Fl_X* Fl_X::make(Fl_Window* w) { x->next = Fl_X::first; Fl_X::first = x; - w->pWindowDriver->set_icons(); + ((Fl_WinAPI_Window_Driver*)w->pWindowDriver)->set_icons(); if (w->fullscreen_active()) { /* We need to make sure that the fullscreen is created on the @@ -2099,7 +2099,7 @@ void Fl_Window::icons(HICON big_icon, HICON small_icon) ((Fl_WinAPI_Window_Driver*)pWindowDriver)->icon_->small_icon = CopyIcon(small_icon); if (Fl_X::i(this)) - pWindowDriver->set_icons(); + ((Fl_WinAPI_Window_Driver*)pWindowDriver)->set_icons(); } /** Sets the default window icons. diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index ca1e1bb7f..376f230fb 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2526,7 +2526,7 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) XSetWMHints(fl_display, xp->xid, hints); XFree(hints); - win->pWindowDriver->set_icons(); + ((Fl_X11_Window_Driver*)win->pWindowDriver)->set_icons(); } // set the window type for menu and tooltip windows to avoid animations (compiz) diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H index 8548bfea0..f1d36b6a1 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H @@ -95,12 +95,12 @@ public: virtual const void *icon() const; virtual void icon(const void * ic); virtual void free_icons(); + void set_icons(); // driver-internal support function // this one is implemented in Fl_win32.cxx virtual void capture_titlebar_and_borders(Fl_Shared_Image*& top, Fl_Shared_Image*& left, Fl_Shared_Image*& bottom, Fl_Shared_Image*& right); virtual void wait_for_expose(); virtual int scroll(int src_x, int src_y, int src_w, int src_h, int dest_x, int dest_y, void (*draw_area)(void*, int,int,int,int), void* data); - virtual void set_icons(); }; diff --git a/src/drivers/X11/Fl_X11_Window_Driver.H b/src/drivers/X11/Fl_X11_Window_Driver.H index 6abd04dca..e976619ee 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.H +++ b/src/drivers/X11/Fl_X11_Window_Driver.H @@ -110,12 +110,12 @@ public: virtual const void *icon() const; virtual void icon(const void * ic); virtual void free_icons(); + void set_icons(); // driver-internal support function virtual void capture_titlebar_and_borders(Fl_Shared_Image*& top, Fl_Shared_Image*& left, Fl_Shared_Image*& bottom, Fl_Shared_Image*& right); virtual void wait_for_expose(); virtual int can_do_overlay(); virtual void redraw_overlay(); virtual int scroll(int src_x, int src_y, int src_w, int src_h, int dest_x, int dest_y, void (*draw_area)(void*, int,int,int,int), void* data); - virtual void set_icons(); }; |
