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
This commit is contained in:
parent
272514cebf
commit
302200668b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user