Author: manolo
Date: 2011-09-28 02:07:50 -0700 (Wed, 28 Sep 2011)
New Revision: 9074
Log:
Mac only: further fine tuning in clipping/rectf needed for scroll demo after
changes in r.9050.
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
branches/branch-1.3/src/fl_rect.cxx
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-09-28 03:46:41 UTC (rev 9073)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-09-28 09:07:50 UTC (rev 9074)
@@ -3348,7 +3348,7 @@
// so a CGRect matches exactly what is denoted x,y,w,h for clipping purposes
CGRect fl_cgrectmake_cocoa(int x, int y, int w, int h) {
- return CGRectMake(x, y, w-1, h-1);
+ return CGRectMake(x, y, w > 0 ? w - 0.9 : 0, h > 0 ? h - 0.9 : 0);
}
Window fl_xid(const Fl_Window* w)
Modified: branches/branch-1.3/src/fl_rect.cxx
===================================================================
--- branches/branch-1.3/src/fl_rect.cxx 2011-09-28 03:46:41 UTC (rev 9073)
+++ branches/branch-1.3/src/fl_rect.cxx 2011-09-28 09:07:50 UTC (rev 9074)
@@ -188,7 +188,7 @@
rect.right = x + w; rect.bottom = y + h;
FillRect(fl_gc, &rect, fl_brush());
#elif defined(__APPLE_QUARTZ__)
- CGRect rect = CGRectMake(x, y, w - 1 , h - 1);
+ CGRect rect = CGRectMake(x, y, w - 0.9 , h - 0.9);
CGContextFillRect(fl_gc, rect);
#else
# error unsupported platform
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit