summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-20 10:56:36 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-20 10:56:36 +0100
commiteb9dd202b212dd0f4c41e0a2b0fabc8a4e51566e (patch)
tree534cf5314947f778028d44c66ae5d6774beca809 /src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
parentbc8b1863984415189ec7a6ad1f609027fcbc671e (diff)
Fix Fl_Wayland_Image_Surface_Driver c'tor
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
index 5cac257ef..83419e5b2 100644
--- a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
@@ -43,6 +43,7 @@ Fl_Wayland_Image_Surface_Driver::Fl_Wayland_Image_Surface_Driver(int w, int h,
cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, w), CAIRO_FORMAT_RGB24);
offscreen = (Fl_Offscreen)off_->cairo_;
cairo_set_user_data(off_->cairo_, &Fl_Wayland_Graphics_Driver::key, off_, NULL);
+ if (d*s != 1 && high_res) cairo_scale((cairo_t*)offscreen, d*s, d*s);
}
driver(new Fl_Wayland_Graphics_Driver());
if (d*s != 1 && high_res) driver()->scale(d*s);