From 1eb3664e7a04208d0579152f58dddd1b7cd0ce6e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 16 Sep 2011 08:29:23 +0000 Subject: Don't draw the resize window corner under Mac OS X 10.7-Lion. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 84892679b..52bda8403 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -104,10 +104,10 @@ void Fl_Window::draw() { 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; -- cgit v1.2.3