summaryrefslogtreecommitdiff
path: root/src/fl_scroll_area.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-02-08 06:48:19 +0000
committerManolo Gouy <Manolo>2015-02-08 06:48:19 +0000
commit1dd0cdcee9a517ccea5e121ee58695444c35b5a3 (patch)
tree860ca904cc7aedd15a0ccaa3837c4a876075cfb0 /src/fl_scroll_area.cxx
parent4dce3a5ed543825b0b59a0369b1dbc6cfc21ba00 (diff)
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
Diffstat (limited to 'src/fl_scroll_area.cxx')
-rw-r--r--src/fl_scroll_area.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_scroll_area.cxx b/src/fl_scroll_area.cxx
index a8cba57c4..eecf1847a 100644
--- a/src/fl_scroll_area.cxx
+++ b/src/fl_scroll_area.cxx
@@ -144,7 +144,7 @@ void fl_scroll(int X, int Y, int W, int H, int dx, int dy,
#elif defined(__APPLE_QUARTZ__)
CGImageRef img = Fl_X::CGImage_from_window_rect(Fl_Window::current(), src_x, src_y, src_w, src_h);
if (img) {
- CGRect rect = { { dest_x, dest_y }, { src_w, src_h } };
+ CGRect rect = CGRectMake(dest_x, dest_y, src_w, src_h);
Fl_X::q_begin_image(rect, 0, 0, src_w, src_h);
CGContextDrawImage(fl_gc, rect, img);
Fl_X::q_end_image();