From 31b386930e5905d590ee2444643500e9495f1589 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:56:16 +0200 Subject: New Wayland-specific function: int fl_wl_buffer_scale(Fl_Window *) --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3