VirtualBox

Ignore:
Timestamp:
Jul 14, 2020 11:47:09 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: CocoaEventHelper.mm + UICocoaDockIconPreview.mm: Can't use MAC_OS_X_VERSION_10_12 for testing with older SDKs. Duh. bugref:9790

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  
    2727/* They just had to rename a whole load of constants in 10.12. Just wrap the carp up
    2828   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_12
     29#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    3030# define VBOX_NSAlphaShiftKeyMask    NSEventModifierFlagCapsLock
    3131# define VBOX_NSAlternateKeyMask     NSEventModifierFlagOption
     
    216216    NSWindow *pEventWindow = [pEvent window];
    217217    NSInteger iEventWindow = [pEvent windowNumber];
    218 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12
     218#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    219219    NSGraphicsContext *pEventGraphicsContext = nil; /* NSEvent::context is deprecated and said to always return nil. */
    220220#else
     
    344344                                           timestamp:[pEvent timestamp] // [NSDate timeIntervalSinceReferenceDate] ?
    345345                                        windowNumber:[pEvent windowNumber]
    346 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12
     346#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    347347                                             context:nil /* NSEvent::context is deprecated and said to always return nil. */
    348348#else
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.mm

    r85331 r85335  
    160160{
    161161    NSImage *dockMonitor = ::darwinToNSImageRef(p->m_dockMonitor);
    162 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12
     162#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    163163    [dockMonitor drawInRect:NSRectFromCGRect(p->flipRect(p->m_monitorRect)) fromRect:aRect operation:NSCompositingOperationSourceOver fraction:1.0];
    164164#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette