summaryrefslogtreecommitdiff
path: root/src/Fl_mac.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-12-18 09:41:12 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-12-18 09:41:12 +0000
commitffe3cb7bd50289a117ff304703c44f7b73067683 (patch)
treeb3d00e891a533f852e6df1cfe2a2fb4469edce9e /src/Fl_mac.cxx
parent4b6535cd5b8684fb858515b10581cec36216bb81 (diff)
STR #1729: fixed ovelay offset for Quartz rendering
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_mac.cxx')
-rw-r--r--src/Fl_mac.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx
index 48f22a27f..93f7bca61 100644
--- a/src/Fl_mac.cxx
+++ b/src/Fl_mac.cxx
@@ -2235,8 +2235,8 @@ void Fl_X::q_begin_image(CGRect &rect, int cx, int cy, int w, int h) {
CGContextClipToRect(fl_gc, r2);
mx.d = -1.0; mx.tx = -mx.tx;
CGContextConcatCTM(fl_gc, mx);
- rect.origin.x = rect.origin.x - cx;
- rect.origin.y = (mx.ty+0.5f) - rect.origin.y - h + cy;
+ rect.origin.x = -(mx.tx+0.5f) + rect.origin.x - cx;
+ rect.origin.y = (mx.ty+0.5f) - rect.origin.y - h + cy;
rect.size.width = w;
rect.size.height = h;
}