diff options
| author | Manolo Gouy <Manolo> | 2015-01-16 07:24:11 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-01-16 07:24:11 +0000 |
| commit | 7ad5091dbc26188a8a3a44054c265c279734b681 (patch) | |
| tree | 45a14156f6553fa4af4574f1eb4e94d16a1964f3 | |
| parent | af42e3cd5f8acf53fc36688f5d3193dc2207cdd6 (diff) | |
Corrected one comment and added one.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
