summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-01-24 10:27:21 +0000
committerManolo Gouy <Manolo>2010-01-24 10:27:21 +0000
commit1eb95cd823c973975d4bdff1c74571d1ea657372 (patch)
tree7c8e9a9c2f75d6421820ddf04de4c68985ea77f8 /FL
parent6f89a3baca6ddc563e26ffca17c35adcc9f41f1b (diff)
Three Cocoa-related changes:
- correct window resize in mandelbrot demo - clip to 1-pixel and 0-pixel width now work - modifier key presses are now correctly reported git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/mac.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/mac.H b/FL/mac.H
index 0237b70cc..59412e78d 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -83,7 +83,7 @@ inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
Fl_Region R = (Fl_Region)malloc(sizeof(*R));
R->count = 1;
R->rects = (CGRect *)malloc(sizeof(CGRect));
- *(R->rects) = CGRectMake(x, y, w - 1, h - 1);
+ *(R->rects) = CGRectMake(x, y, w > 0 ? w - 0.9 : 0, h > 0 ? h - 0.9 : 0);
return R;
}
inline void XDestroyRegion(Fl_Region r) {