summaryrefslogtreecommitdiff
path: root/src/fl_draw_pixmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_draw_pixmap.cxx')
-rw-r--r--src/fl_draw_pixmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx
index a1fb81d8a..c242b7324 100644
--- a/src/fl_draw_pixmap.cxx
+++ b/src/fl_draw_pixmap.cxx
@@ -322,7 +322,7 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) {
src, 0L, false, kCGRenderingIntentDefault);
CGColorSpaceRelease(lut);
CGDataProviderRelease(src);
- CGRect rect = { x, y, d.w, d.h };
+ CGRect rect = { { x, y} , { d.w, d.h } };
Fl_X::q_begin_image(rect, x, y, d.w, d.h);
CGContextDrawImage(fl_gc, rect, img);
Fl_X::q_end_image();