Changeset 85335 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 14, 2020 11:47:09 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/CocoaEventHelper.mm
r85334 r85335 27 27 /* They just had to rename a whole load of constants in 10.12. Just wrap the carp up 28 28 in some defines for now as we need to keep building with both 10.9 and 10.13+: */ 29 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_1229 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 30 30 # define VBOX_NSAlphaShiftKeyMask NSEventModifierFlagCapsLock 31 31 # define VBOX_NSAlternateKeyMask NSEventModifierFlagOption … … 216 216 NSWindow *pEventWindow = [pEvent window]; 217 217 NSInteger iEventWindow = [pEvent windowNumber]; 218 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12218 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 219 219 NSGraphicsContext *pEventGraphicsContext = nil; /* NSEvent::context is deprecated and said to always return nil. */ 220 220 #else … … 344 344 timestamp:[pEvent timestamp] // [NSDate timeIntervalSinceReferenceDate] ? 345 345 windowNumber:[pEvent windowNumber] 346 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12346 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 347 347 context:nil /* NSEvent::context is deprecated and said to always return nil. */ 348 348 #else -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.mm
r85331 r85335 160 160 { 161 161 NSImage *dockMonitor = ::darwinToNSImageRef(p->m_dockMonitor); 162 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12162 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 163 163 [dockMonitor drawInRect:NSRectFromCGRect(p->flipRect(p->m_monitorRect)) fromRect:aRect operation:NSCompositingOperationSourceOver fraction:1.0]; 164 164 #else
Note:
See TracChangeset
for help on using the changeset viewer.