From 302200668bf730cd4633b1c650f11dff55efa6f9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 15 Nov 2012 08:30:44 +0000 Subject: 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 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3