summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-12-18 17:32:08 +0000
committerManolo Gouy <Manolo>2014-12-18 17:32:08 +0000
commitf2cba934cb9c477fd6e7579266ac8e36a2df7720 (patch)
treeb9b8fecd32ad7c6eb5be007006084e0dfe23bb9f /src
parentd8ddb7b511edf4fe242a6aebf86502ed01652b6a (diff)
Restores compilation with SDK’s before 10.7, erroneously broken in a recent commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 5837c4602..e5c842af4 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1227,7 +1227,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
update_e_xy_and_e_xy_root(nsw);
resize_from_system = NULL;
window->position((int)pt2.x, (int)(main_screen_height - pt2.y));
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
compute_mapped_to_retina(window);
+#endif
position_subwindows(window, YES);
}
fl_unlock_function();
@@ -2709,8 +2711,10 @@ void Fl_X::make(Fl_Window* w)
x->subRect(0);
x->cursor = NULL;
x->gc = 0;
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
if (w->parent()) x->mapped_to_retina( w->top_window()->i->mapped_to_retina() );
else x->mapped_to_retina(false);
+#endif
NSRect crect;
if (w->fullscreen_active()) {
@@ -2838,7 +2842,9 @@ void Fl_X::make(Fl_Window* w)
crect = [cw frame];
w->x(int(crect.origin.x));
w->y(int(main_screen_height - (crect.origin.y + w->h())));
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
compute_mapped_to_retina(w);
+#endif
}
int old_event = Fl::e_number;
@@ -3027,7 +3033,9 @@ void Fl_Window::make_current()
if (make_current_counts) make_current_counts++;
Fl_X::q_release_context();
fl_window = i->xid;
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
Fl_X::set_high_resolution( i->mapped_to_retina() );
+#endif
current_ = this;
NSGraphicsContext *nsgc = through_drawRect ? [NSGraphicsContext currentContext] :