From ba40e0e277a2a959209e082fd62a3c2e796a9566 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 24 Dec 2024 12:33:28 +1300 Subject: Completed Fl_Surface_Device binding --- src/c_fl_surface.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/c_fl_surface.cpp') diff --git a/src/c_fl_surface.cpp b/src/c_fl_surface.cpp index 08fbc2d..9fb21ca 100644 --- a/src/c_fl_surface.cpp +++ b/src/c_fl_surface.cpp @@ -11,9 +11,9 @@ class My_Surface_Device : public Fl_Surface_Device { - public: - using Fl_Surface_Device::Fl_Surface_Device; - friend SURFACE new_fl_surface(void * g); +public: + using Fl_Surface_Device::Fl_Surface_Device; + friend SURFACE new_fl_surface(void * g); }; @@ -41,3 +41,10 @@ SURFACE fl_surface_get_surface(void) { } + + +void fl_surface_set_driver(SURFACE s, void * g) { + reinterpret_cast(s)->driver(reinterpret_cast(g)); +} + + -- cgit