diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 |
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 d1cff937e..53bb2ecf2 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1823,7 +1823,7 @@ void Fl_Wayland_Window_Driver::resize(int X, int Y, int W, int H) { } int is_a_move = (X != x() || Y != y()); bool true_rescale = Fl_Window::is_a_rescale(); - float f = Fl::screen_scale(pWindow->screen_num()); + float f = fl_win ? Fl::screen_scale(pWindow->screen_num()) : 1; if (fl_win && fl_win->buffer) { int scale = wld_scale(); int stride = cairo_format_stride_for_width( |
