From 99cf1dd8581efde273680a92f8986ad4991857a6 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 10 Jul 2018 10:51:02 +0000 Subject: Make Fl_Graphics_Driver::newMainGraphicsDriver() public rather than private. An FLTK app may be interested in calling it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Graphics_Driver.H | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 01646b446..3057d127e 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -146,11 +146,9 @@ private: // some platforms may need to reimplement this virtual void set_current_(); float scale_; // scale between FLTK and drawing coordinates: drawing = FLTK * scale_ - // The following function creates the graphics driver that is required - // for core operations. It must be implemented as a member of Fl_Graphics_Driver, - // but located in the device driver module that is linked to the core library. - static Fl_Graphics_Driver *newMainGraphicsDriver(); public: + /** Creates the graphics driver that is used for core operations. */ + static Fl_Graphics_Driver *newMainGraphicsDriver(); /** A 2D coordinate transformation matrix */ struct matrix {double a, b, c, d, x, y;}; /** Features that a derived class may possess. */ -- cgit v1.2.3