Author: manolo
Date: 2012-11-15 00:43:44 -0800 (Thu, 15 Nov 2012)
New Revision: 9722
Log:
Fixes STR #2887: Fl_Scroll widget fails under Mac OS X 10.8 on MacBook Pro with
retina display.
Modified:
branches/branch-3.0/src/fltk3/cocoa.mm
Modified: branches/branch-3.0/src/fltk3/cocoa.mm
===================================================================
--- branches/branch-3.0/src/fltk3/cocoa.mm 2012-11-15 08:30:44 UTC (rev
9721)
+++ branches/branch-3.0/src/fltk3/cocoa.mm 2012-11-15 08:43:44 UTC (rev
9722)
@@ -3094,7 +3094,7 @@
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.
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit