summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-11-15 08:30:44 +0000
committerManolo Gouy <Manolo>2012-11-15 08:30:44 +0000
commit302200668bf730cd4633b1c650f11dff55efa6f9 (patch)
tree5b6c7f3d27e6758e7a4cc8771a28b7705dda4baa /src
parent272514cebfe9845f9a96ea065e97ffff68212e0f (diff)
Fixes STR #2887: Fl_Scroll widget fails under Mac OS X 10.8 on MacBook Pro with retina display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 9255340f1..4940e515b 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3326,7 +3326,7 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y,
win = win->window();
}
CGFloat epsilon = 0;
- if (fl_mac_os_version >= 100600) epsilon = 0.001;
+ if (fl_mac_os_version >= 100600) epsilon = 0.5; // STR #2887
// The epsilon offset is absolutely necessary under 10.6. Without it, the top pixel row and
// left pixel column are not read, and bitmap is read shifted by one pixel in both directions.
// Under 10.5, we want no offset.