summaryrefslogtreecommitdiff
path: root/src/drivers/Pico
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-20 08:44:30 +0000
committerManolo Gouy <Manolo>2016-03-20 08:44:30 +0000
commit4baca53944c5193947203b5a96f95bfe8954a9cb (patch)
treed6c4b27aebd3c2a8bd6869a7a0ce7dde1fb6fccf /src/drivers/Pico
parent51030530f24c33c59db3084bc2b088d50b2c6627 (diff)
Continue implementation of class Fl_Window_Driver according to Albrecht's plan.
This removes a bunch of friend class Fl_XXX_Window_Driver; declarations from Fl_Window.H, and therefore allows to add a new window driver without modifying the platform-independent code. The Fl_PicoXXX_Window_Driver classes have been modified but not tested ==> test needed. File Fl_X11_Window_Driver.cxx contained this: // DO NOT call this if the window is not mapped! static int can_xdbe() { ... } The new code does call can_xdbe() before any window is mapped, and does work. Since can_xdbe() asks the X server whether it supports the Xdbe extension, I don't see why this should not work without a mapped window. This point should be clarified by the author of "DO NOT call this if the window is not mapped!". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Pico')
-rw-r--r--src/drivers/Pico/Fl_Pico_Window_Driver.H7
-rw-r--r--src/drivers/Pico/Fl_Pico_Window_Driver.cxx39
2 files changed, 0 insertions, 46 deletions
diff --git a/src/drivers/Pico/Fl_Pico_Window_Driver.H b/src/drivers/Pico/Fl_Pico_Window_Driver.H
index 40d6457fa..51e9db920 100644
--- a/src/drivers/Pico/Fl_Pico_Window_Driver.H
+++ b/src/drivers/Pico/Fl_Pico_Window_Driver.H
@@ -37,13 +37,6 @@ public:
// --- window data
virtual int decorated_w();
virtual int decorated_h();
-
- // --- window management
- virtual void flush_single();
- virtual void flush_double();
- virtual void flush_overlay();
- virtual void draw_begin();
- virtual void draw_end();
};
diff --git a/src/drivers/Pico/Fl_Pico_Window_Driver.cxx b/src/drivers/Pico/Fl_Pico_Window_Driver.cxx
index f113a3ca8..d1fb664c8 100644
--- a/src/drivers/Pico/Fl_Pico_Window_Driver.cxx
+++ b/src/drivers/Pico/Fl_Pico_Window_Driver.cxx
@@ -25,7 +25,6 @@
#include <FL/fl_draw.h>
-
Fl_Pico_Window_Driver::Fl_Pico_Window_Driver(Fl_Window *win)
: Fl_Window_Driver(win)
{
@@ -50,44 +49,6 @@ int Fl_Pico_Window_Driver::decorated_h()
return pWindow->h();
}
-
-// --- window management
-void Fl_Pico_Window_Driver::flush_single()
-{
- Fl_X *i = Fl_X::i(pWindow);
- if (!i) return;
- fl_clip_region(i->region);
- i->region = 0;
- pWindow->draw();
-}
-
-
-void Fl_Pico_Window_Driver::flush_double()
-{
- flush_single();
-}
-
-
-void Fl_Pico_Window_Driver::flush_overlay()
-{
- flush_single();
-}
-
-
-
-
-void Fl_Pico_Window_Driver::draw_begin()
-{
- // nothing to do
-}
-
-
-void Fl_Pico_Window_Driver::draw_end()
-{
- // nothing to do
-}
-
-
//
// End of "$Id: Fl_Pico_Window_Driver.cxx 11253 2016-03-01 00:54:21Z matt $".
// \ No newline at end of file