summaryrefslogtreecommitdiff
path: root/src/Fl_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-04-17 15:36:23 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-04-17 15:36:23 +0000
commitcdf85352c42dd2f3b43703897148e8fa513c9cdc (patch)
treeefdafdb13036cce810c6f648bb85c44854b86ff3 /src/Fl_Graphics_Driver.cxx
parentc9d3eabf4e201384a930707fbe1b8a01771f5e3d (diff)
virtualized some Region calls.
There is a deeper issue here: regions should be handled by the graphics driver that is associated with the Fl_Window of this widget... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Graphics_Driver.cxx')
-rw-r--r--src/Fl_Graphics_Driver.cxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx
index 72f52427f..510852b5b 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -37,6 +37,18 @@ Fl_Graphics_Driver::Fl_Graphics_Driver() {
font_descriptor_ = NULL;
};
+
+Fl_Graphics_Driver &Fl_Graphics_Driver::default_driver()
+{
+ static Fl_Graphics_Driver *pMainDriver = 0L;
+ if (!pMainDriver) {
+ pMainDriver = Fl_Display_Device::display_device()->driver();
+ }
+ return *pMainDriver;
+}
+
+
+
void Fl_Graphics_Driver::text_extents(const char*t, int n, int& dx, int& dy, int& w, int& h)
{
w = (int)width(t, n);
@@ -100,6 +112,25 @@ void Fl_Graphics_Driver::free_color(Fl_Color i, int overlay)
}
+void Fl_Graphics_Driver::add_rectangle_to_region(Fl_Region r, int x, int y, int w, int h)
+{
+ // nothing to do, reimplement in driver if needed
+}
+
+
+Fl_Region Fl_Graphics_Driver::XRectangleRegion(int x, int y, int w, int h)
+{
+ // nothing to do, reimplement in driver if needed
+ return 0;
+}
+
+
+void Fl_Graphics_Driver::XDestroyRegion(Fl_Region r)
+{
+ // nothing to do, reimplement in driver if needed
+}
+
+
//
// End of "$Id$".
//