diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-24 12:33:28 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-24 12:33:28 +1300 |
commit | ba40e0e277a2a959209e082fd62a3c2e796a9566 (patch) | |
tree | 0412bdb5cb3930229f86dbc99549d7a9448a6909 /src/c_fl_surface.cpp | |
parent | b3f9e96403aa5cb9d7db2330aa579356d1d58b6f (diff) |
Completed Fl_Surface_Device binding
Diffstat (limited to 'src/c_fl_surface.cpp')
-rw-r--r-- | src/c_fl_surface.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
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<Fl_Surface_Device*>(s)->driver(reinterpret_cast<Fl_Graphics_Driver*>(g)); +} + + |