FLTK logo

[Library] r9039 - branches/branch-1.3/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r9039 - branches/branch-1.3/src fltk-dev Sep 16, 2011  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.