summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-10-28 13:44:09 +0000
committerManolo Gouy <Manolo>2014-10-28 13:44:09 +0000
commita11d067d687d3628ae2b5845fee96a8e4273b8ad (patch)
treea385f6b27734935a6a0495fe6783b8e720b53e10 /src/fl_rect.cxx
parentf68d677bdeea7235f7e89a0b47b5fdfca9455dc8 (diff)
Improves FLTK usage on macintosh computers with retina displays.
The editor demo had grey lines between text lines and its cursor left traces behind when moved. The scroll demo left some faint lines behind also. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx2
1 files changed, 1 insertions, 1 deletions
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