diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-18 09:59:47 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-19 15:59:48 +0100 |
| commit | 0f6fb2ab5a177a875881c4c54a3097b862ac273c (patch) | |
| tree | 4d468251c2c32718511e9be02fa15f34040cdc66 | |
| parent | 5cb72ef065f53d8f8759a6b6cccd35a2f367f290 (diff) | |
Add comment about detection of macOS "Big Sur" 11.0 at run-time.
| -rw-r--r-- | src/Fl_cocoa.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 800041c8a..8f9f172e8 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4397,7 +4397,13 @@ void Fl_Cocoa_Window_Driver::gl_start(NSOpenGLContext *ctxt) { [ctxt update]; // supports window resizing } -/* Returns the version of the running Mac OS as an int such as 100802 for 10.8.2 +/* Returns the version of the running Mac OS as an int such as 100802 for 10.8.2, + and also assigns that value to global fl_mac_os_version. + N.B.: macOS "Big Sur" 11.0 can produce 2 different values for fl_mac_os_version: + - when SDK 11.0 is used, fl_mac_os_version is set to 110000 (or bigger) + - when SDK 10.15 or earlier is used, fl_mac_os_version is set to 101600 + That is reported to facilitate life of apps that assumed majorVersion would remain equal to 10 + and used only minorVersion to determine what is the running version of macOS. */ int Fl_Darwin_System_Driver::calc_mac_os_version() { if (fl_mac_os_version) return fl_mac_os_version; |
