diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-07-04 08:56:16 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-07-04 08:56:16 +0200 |
| commit | 31b386930e5905d590ee2444643500e9495f1589 (patch) | |
| tree | e5127819d6ed1d397bd5ff0445fd0fe7c284758e /src | |
| parent | fc910ae892b58afaac5a1d1181757fac28ccfb20 (diff) | |
New Wayland-specific function: int fl_wl_buffer_scale(Fl_Window *)
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index ffc97ceae..2c45df2c8 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -2090,6 +2090,11 @@ struct wl_compositor *fl_wl_compositor() { } +int fl_wl_buffer_scale(Fl_Window *window) { + return Fl_Wayland_Window_Driver::driver(window)->wld_scale(); +} + + Fl_Wayland_Plugin *Fl_Wayland_Window_Driver::gl_plugin() { static Fl_Wayland_Plugin *plugin = NULL; if (!plugin) { |
