From e83bc2527fd412bc235f1f8743659e31b12bdc31 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 10 Feb 2016 19:49:35 +0000 Subject: Basic Screen Driver Structure. LIMBO! Creating the basic structure for a screen driver system. OS X works X11 and WinAPI are in limbo and will be fixed in the next hour or so. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 9e421f0ff..52208b58f 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -46,6 +46,7 @@ #endif #include +#include #include #include #include @@ -208,6 +209,21 @@ Fl_Window *Fl::modal_; // topmost modal() window char const * const Fl::clipboard_plain_text = "text/plain"; char const * const Fl::clipboard_image = "image"; + +// +// Drivers +// + +Fl_Screen_Driver *Fl::screen_driver_ = Fl_Screen_Driver::newScreenDriver(); + +Fl_Screen_Driver *Fl::screen_driver() +{ + if (!screen_driver_) + screen_driver_ = Fl_Screen_Driver::newScreenDriver(); + return screen_driver_; +} + + // // 'Fl::version()' - Return the API version number... // @@ -2350,6 +2366,8 @@ Fl_Widget_Tracker::~Fl_Widget_Tracker() } int Fl::use_high_res_GL_ = 0; + + // // End of "$Id$". // -- cgit v1.2.3