From 4645ed97031bb2ce1122ec890a6c6ac55590c94a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 29 Jan 2010 21:16:20 +0000 Subject: defined macro FL_CGRECTMAKE_COCOA that contains the correct way to transform x,y,w,h into a CGRect adequate for clipping git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 17d4c5612..c8b359c6b 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1474,8 +1474,8 @@ void Fl_Widget::damage(uchar fl, int X, int Y, int W, int H) { XDestroyRegion(R); #elif defined(__APPLE_QUARTZ__) #ifdef __APPLE_COCOA__ - CGRect arg = CGRectMake(X, Y, W - 0.9, H - 0.9); - int j;//don't add a rectangle totally inside the Fl_Region + CGRect arg = FL_CGRECTMAKE_COCOA(X, Y, W, H); + int j; // don't add a rectangle totally inside the Fl_Region for(j = 0; j < i->region->count; j++) { if(CGRectContainsRect(i->region->rects[j], arg)) break; } -- cgit v1.2.3