Implement Fl_Wayland_Screen_Driver::base_scale(int numscreen)

This commit is contained in:
ManoloFLTK 2024-03-04 16:20:54 +01:00
parent 5ba756e60a
commit 7777a503ad
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}