summaryrefslogtreecommitdiff
path: root/src/c_fl_surface_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_surface_device.cpp')
-rw-r--r--src/c_fl_surface_device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c_fl_surface_device.cpp b/src/c_fl_surface_device.cpp
index 34b2bac..50088cf 100644
--- a/src/c_fl_surface_device.cpp
+++ b/src/c_fl_surface_device.cpp
@@ -10,6 +10,8 @@
+// Adding relevant friends
+
class My_Surface_Device : public Fl_Surface_Device {
public:
using Fl_Surface_Device::Fl_Surface_Device;
@@ -19,6 +21,8 @@ public:
+// Flattened C API
+
SURFACEDEVICE new_fl_surface_device(void * g) {
My_Surface_Device *s = new My_Surface_Device(reinterpret_cast<Fl_Graphics_Driver*>(g));
return s;