summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-03-25 18:47:29 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-03-25 18:47:29 +0100
commit499ec5c2915530bc3b0d72ef37ff74801cfc67a7 (patch)
tree38938c8818aa76fc01e439a367fb68d9d7167623 /src/Fl_Window.cxx
parent258116c5a61cf1861058ab5c4ef07ffe73fc4912 (diff)
Replace static void Fl_Window_Driver::default_icons() by virtual Fl_Screen_Driver::default_icons()
Diffstat (limited to 'src/Fl_Window.cxx')
-rw-r--r--src/Fl_Window.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index f664b1fc9..27ff2ae9d 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -25,6 +25,7 @@
#include <FL/Fl.H>
#include <FL/platform.H>
#include "Fl_Window_Driver.H"
+#include "Fl_Screen_Driver.H"
#include <FL/Fl_RGB_Image.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Tooltip.H>
@@ -317,7 +318,8 @@ void Fl_Window::default_icon(const Fl_RGB_Image *icon) {
\see Fl_Window::icons(const Fl_RGB_Image *[], int)
*/
void Fl_Window::default_icons(const Fl_RGB_Image *icons[], int count) {
- Fl_Window_Driver::default_icons(icons, count);
+ Fl::screen_driver()->open_display();
+ Fl::screen_driver()->default_icons(icons, count);
}
/** Sets or resets a single window icon.