summaryrefslogtreecommitdiff
path: root/src/fl_draw_pixmap.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-02-14 18:17:06 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-02-14 18:17:06 +0000
commit5d07b1a8001e09c5d7b67e516b7279aa838ffc10 (patch)
treeda0224c2e17b0da0e3e565e49e5c8afe5eaceead /src/fl_draw_pixmap.cxx
parent9d3e96acd7f5e9131d222f871e47dfbbfc4da3d4 (diff)
Fixed OS X pixmap offset bug (Thanks to D'Elia Yuri) STR 1856
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_pixmap.cxx')
-rw-r--r--src/fl_draw_pixmap.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx
index c242b7324..2b52ac5b2 100644
--- a/src/fl_draw_pixmap.cxx
+++ b/src/fl_draw_pixmap.cxx
@@ -323,10 +323,9 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) {
CGColorSpaceRelease(lut);
CGDataProviderRelease(src);
CGRect rect = { { x, y} , { d.w, d.h } };
- Fl_X::q_begin_image(rect, x, y, d.w, d.h);
+ Fl_X::q_begin_image(rect, 0, 0, d.w, d.h);
CGContextDrawImage(fl_gc, rect, img);
Fl_X::q_end_image();
- CGContextFlush(fl_gc);
CGImageRelease(img);
delete array;