summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-14 20:41:16 +0000
committerManolo Gouy <Manolo>2016-04-14 20:41:16 +0000
commita409f7c338d779b4ed473a27765b46cd4963edfa (patch)
treed2a23ef5e52c0c5a0fb212b7e423a7d2e40a7c16 /src/drivers
parent8a0ee7c1db4796ba0dc1232245236a072afb1d0e (diff)
Fix Quartz-specific graphics problem apparent in tree demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
-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 3f087351b..db01a3fe0 100644
--- a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
@@ -55,7 +55,7 @@ Fl_Quartz_Image_Surface_Driver::Fl_Quartz_Image_Surface_Driver(int w, int h, int
offscreen = 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, -0.5); // as when drawing to a window
if (high_res) {
CGContextScaleCTM(offscreen, 2, 2);
}