From 1dd0cdcee9a517ccea5e121ee58695444c35b5a3 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 8 Feb 2015 06:48:19 +0000 Subject: Allow compilation with -std=c++11 on Mac OS X git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Image.cxx') diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 909994915..24d318cdb 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -587,7 +587,7 @@ void Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image *img, int XP, int YP, int WP, CGColorSpaceRelease(lut); CGDataProviderRelease(src); } - CGRect rect = { { X, Y }, { W, H } }; + CGRect rect = CGRectMake(X, Y, W, H); Fl_X::q_begin_image(rect, cx, cy, img->w(), img->h()); CGContextDrawImage(fl_gc, rect, (CGImageRef)img->id_); Fl_X::q_end_image(); -- cgit v1.2.3