From 499ec5c2915530bc3b0d72ef37ff74801cfc67a7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 25 Mar 2019 18:47:29 +0100 Subject: Replace static void Fl_Window_Driver::default_icons() by virtual Fl_Screen_Driver::default_icons() --- src/Fl_Window.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window.cxx') 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 #include #include "Fl_Window_Driver.H" +#include "Fl_Screen_Driver.H" #include #include #include @@ -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. -- cgit v1.2.3