From 7ad5091dbc26188a8a3a44054c265c279734b681 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 16 Jan 2015 07:24:11 +0000 Subject: Corrected one comment and added one. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 1a2212852..33d065956 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1112,13 +1112,13 @@ static void orderfront_subwindows(FLWindow *xid) } #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 -//determines whether the (top-level) window is mapped to a retina display +//determines whether a window is mapped to a retina display static void compute_mapped_to_retina(Fl_Window *window) { if (fl_mac_os_version >= 100700) { // determine whether window is now mapped to a retina display Fl_X *flx = Fl_X::i(window); bool previous = flx->mapped_to_retina(); - NSSize s = [[flx->xid contentView] convertSizeToBacking:NSMakeSize(10, 10)]; + NSSize s = [[flx->xid contentView] convertSizeToBacking:NSMakeSize(10, 10)]; // 10.7 flx->mapped_to_retina( int(s.width + 0.5) > 10 ); if (previous != flx->mapped_to_retina()) flx->changed_resolution(true); // window needs redrawn when moving from low res to retina -- cgit v1.2.3