diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-01-20 00:11:43 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-01-20 00:11:43 +0000 |
| commit | bd78fa1c48641649e033818503af5c8e99330226 (patch) | |
| tree | e56b03e8cb1cd0a6d63a16082eba28a8e0edfc2c /FL | |
| parent | 9872f7405325019ab925b487dd8988cf9882817d (diff) | |
Starting to cut out individual graphics function, so that multiple drivers can coexist (cfg_gfx). Found the missing pixels in the OpenGL gfx driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Device.H | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index aa34199c0..78bfb351f 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -285,7 +285,7 @@ protected: /** \brief see fl_color(uchar r, uchar g, uchar b). */ virtual void color(uchar r, uchar g, uchar b) {} /** \brief see fl_point(int x, int y). */ - virtual void point(int x, int y); + virtual void point(int x, int y) = 0; /** \brief see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2). */ virtual void loop(int x0, int y0, int x1, int y1, int x2, int y2); /** \brief see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3). */ @@ -474,6 +474,7 @@ public: static Fl_Offscreen create_offscreen_with_alpha(int w, int h); #endif void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); + virtual void point(int x, int y); }; #elif defined(WIN32) || defined(FL_DOXYGEN) @@ -509,6 +510,7 @@ public: void copy_offscreen_with_alpha(int x,int y,int w,int h,HBITMAP bitmap,int srcx,int srcy); #endif void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); + virtual void point(int x, int y); }; /** @@ -529,6 +531,8 @@ public: # pragma message "FL_PORTING: define a native graphics driver Fl_xxx_Graphics_Driver" class FL_EXPORT Fl_XXX_Graphics_Driver : public Fl_Graphics_Driver { +protected: + virtual void point(int x, int y) { } }; #else // X11 @@ -564,6 +568,7 @@ public: #if ! defined(FL_DOXYGEN) void copy_offscreen_with_alpha(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); #endif + virtual void point(int x, int y); }; #endif |
