summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-09-28 09:07:50 +0000
committerManolo Gouy <Manolo>2011-09-28 09:07:50 +0000
commit0faba4e3cb7b2dd41bd071704209f67462649ebd (patch)
treebecf000d08596bf6e736c4e88d164ee54529b18e /src/Fl_cocoa.mm
parent1fba7d0f4694fdabc3db67f489d9e3e3956035da (diff)
Mac only: further fine tuning in clipping/rectf needed for scroll demo after changes in r.9050.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 760293a37..c15730d45 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3348,7 +3348,7 @@ WindowRef Fl_X::window_ref()
// 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)