summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
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 /src/Fl.cxx
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 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 87379ed4f..17d4c5612 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1474,7 +1474,7 @@ 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 - 1,H - 1);
+ CGRect arg = CGRectMake(X, Y, W - 0.9, H - 0.9);
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;