|
|
Author: manolo
Date: 2011-09-16 01:29:23 -0700 (Fri, 16 Sep 2011)
New Revision: 9039
Log:
Don't draw the resize window corner under Mac OS X 10.7-Lion.
Modified:
branches/branch-1.3/src/Fl_Window.cxx
Modified: branches/branch-1.3/src/Fl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Window.cxx 2011-09-15 13:33:04 UTC (rev 9038)
+++ branches/branch-1.3/src/Fl_Window.cxx 2011-09-16 08:29:23 UTC (rev 9039)
@@ -104,10 +104,10 @@
draw_children();
#ifdef __APPLE_QUARTZ__
- // on OS X, windows have no frame. To resize a window, we drag the lower right
+ // on OS X, windows have no frame. Before OS X 10.7, to resize a window, we drag the lower right
// corner. This code draws a little ribbed triangle for dragging.
- extern CGContextRef fl_gc;
- if (fl_gc && !parent() && resizable() && (!size_range_set || minh!=maxh || minw!=maxw)) {
+ if (fl_mac_os_version < 100700 && fl_gc && !parent() && resizable() &&
+ (!size_range_set || minh!=maxh || minw!=maxw)) {
int dx = Fl::box_dw(box())-Fl::box_dx(box());
int dy = Fl::box_dh(box())-Fl::box_dy(box());
if (dx<=0) dx = 1;
[ Direct Link to Message ] | |
|
| |