From 7777a503ada1d7d7ae2e30897efa52bcd0b36df6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:20:54 +0100 Subject: Implement Fl_Wayland_Screen_Driver::base_scale(int numscreen) --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.H | 1 + src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H index d5a7ed9ad..cc33a4f60 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H @@ -171,6 +171,7 @@ public: void enable_im() FL_OVERRIDE; void disable_im() FL_OVERRIDE; bool screen_boundaries_known() FL_OVERRIDE { return false; } + float base_scale(int numscreen) FL_OVERRIDE; // overridden functions from parent class Fl_Unix_Screen_Driver int poll_or_select_with_delay(double time_to_wait) FL_OVERRIDE; diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 6a4692f64..2a0e08790 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1877,6 +1877,11 @@ int Fl_Wayland_Screen_Driver::get_key(int k) { } +float Fl_Wayland_Screen_Driver::base_scale(int numscreen) { + return 1.f; +} + + struct wl_display *fl_wl_display() { return Fl_Wayland_Screen_Driver::wl_display; } -- cgit v1.2.3