diff --git a/CHANGES b/CHANGES index 2351a9690..01c95a56f 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ CHANGES IN FLTK 1.1.8 STR #1742, STR #1777, STR #1794, STR #1827, STR #1843, STR #1796, STR #1815, STR #1726, STR #1753, STR #1855, STR #1862)) + - Fixed offset bug in OS X pixmap code (STR #1856) - Fixed potential buffer overrun in Fl_Preferences (STR #1853) - Fixed method attributes in consecutive class 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;