summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-03-08 20:16:34 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-03-08 20:16:34 +0100
commita1115f13e37d8b8b816dbd9213505288f781e0b8 (patch)
tree8f23a28a90ec656723794fd0137f09d1b4170022 /src/drivers/Quartz
parenta03220aba5e387314dd134b91ddc414b71ab9fa0 (diff)
Improve use of fl_scroll within Fl_Overlay_Window on macOS.
This is a partial fix for "[fltk.general] scroll and overlay window" dated 7 march 2020. Mixing of Fl_Scroll and Fl_Overlay_Window is now OK also on a retina display, but there are still problems when the window is scaled.
Diffstat (limited to 'src/drivers/Quartz')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
index b25bda07c..45bef28a4 100644
--- a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
@@ -70,7 +70,7 @@ Fl_Quartz_Image_Surface_Driver::Fl_Quartz_Image_Surface_Driver(int w, int h, int
offscreen = off ? off : CGBitmapContextCreate(calloc(W*H,4), W, H, 8, W*4, lut, kCGImageAlphaPremultipliedLast);
CGColorSpaceRelease(lut);
driver(new Fl_Quartz_Graphics_Driver);
- CGContextTranslateCTM(offscreen, 0.5, -0.5); // as when drawing to a window
+ CGContextTranslateCTM(offscreen, 0.5*s, -0.5*s); // as when drawing to a window
if (high_res) {
CGContextScaleCTM(offscreen, s, s);
}