summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-07 10:49:11 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-07 10:49:11 +0200
commitf5b14397dd5cc6a76942ac3033f0f2cc40e4ee16 (patch)
tree0018f242650631cbc607d6955bebc8da76b8151e /src
parent5dfc64ef323adfdf190b86dffaf8a9608b39afaa (diff)
Wayland platform: fix declaration of local variable 'scale'.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index c751b47f8..3c4cb76b6 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -363,8 +363,8 @@ void Fl_Wayland_Window_Driver::make_current() {
fl_graphics_driver->clip_region(0);
fl_window = Fl_Wayland_Window_Driver::wld_window = window;
+ float scale = Fl::screen_scale(pWindow->screen_num()) * window->scale;
if (!window->buffer) {
- float scale = Fl::screen_scale(pWindow->screen_num()) * window->scale;
window->buffer = Fl_Wayland_Graphics_Driver::create_shm_buffer(
pWindow->w() * scale, pWindow->h() * scale);
((Fl_Cairo_Graphics_Driver*)fl_graphics_driver)->needs_commit_tag(