diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 | ||||
| -rw-r--r-- | src/fl_rect.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 4817412d0..7d100f583 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3919,7 +3919,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 > 0 ? w - 0.9 : 0, h > 0 ? h - 0.9 : 0); + return CGRectMake(x - 0.5, y - 0.5, w, h); } Window fl_xid(const Fl_Window* w) diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index ee4430497..cc8de7c27 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -188,7 +188,7 @@ void Fl_Graphics_Driver::rectf(int x, int y, int w, int h) { rect.right = x + w; rect.bottom = y + h; FillRect(fl_gc, &rect, fl_brush()); #elif defined(__APPLE_QUARTZ__) - CGRect rect = CGRectMake(x, y, w - 0.9 , h - 0.9); + CGRect rect = CGRectMake(x - 0.5, y - 0.5, w , h); CGContextFillRect(fl_gc, rect); #else # error unsupported platform |
