From 1eb95cd823c973975d4bdff1c74571d1ea657372 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 24 Jan 2010 10:27:21 +0000 Subject: 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 --- FL/mac.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL') 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) { -- cgit v1.2.3