VirtualBox

Changeset 99494 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Apr 20, 2023 7:52:23 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156989
Message:

FE/VBoxSDL: Make it work with macOS, bugref:9449

Location:
trunk/src/VBox/Frontends/VBoxSDL
Files:
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r99090 r99494  
    335335    if (!winId)
    336336        return E_POINTER;
    337 #ifdef RT_OS_DARWIN
    338     if (mWinId == 0) /* (In case it failed the first time.) */
    339         mWinId = (intptr_t)VBoxSDLGetDarwinWindowId();
    340 #endif
     337
    341338    *winId = mWinId;
    342339    return S_OK;
     
    389386             x, y, w, h));
    390387
    391 #ifdef VBOXSDL_WITH_X11
     388#if defined(VBOXSDL_WITH_X11) || defined(RT_OS_DARWIN)
    392389    /*
    393390     * SDL does not allow us to make this call from any other thread than
     
    846843void VBoxSDLFB::update(int x, int y, int w, int h, bool fGuestRelative)
    847844{
    848 #ifdef VBOXSDL_WITH_X11
     845#if defined(VBOXSDL_WITH_X11) || defined(RT_OS_DARWIN)
    849846    AssertMsg(gSdlNativeThread == RTThreadNativeSelf(), ("Wrong thread! SDL is not threadsafe!\n"));
    850847#endif
  • trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk

    r98412 r99494  
    5858        Helper.cpp \
    5959        ../Common/PasswordInput.cpp
    60  VBoxSDL_SOURCES.darwin = \
    61         VBoxSDLMain-darwin.m \
    62         Framebuffer-darwin.m
    6360
    6461 VBoxSDL_DEFS      =
     
    9693 endif
    9794
    98  VBoxSDL_LDFLAGS.darwin = \
    99         -framework Foundation -framework AppKit
    10095 VBoxSDL_LDFLAGS.win = -SubSystem:Windows
    10196
     
    126121  tstSDL_SOURCES = \
    127122        VBoxSDLTest.cpp
    128   tstSDL_SOURCES.darwin = \
    129         VBoxSDLMain-darwin.m
    130123  tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
    131124  tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r99090 r99494  
    40904090}
    40914091
    4092 #ifdef VBOXSDL_WITH_X11
     4092#if defined(VBOXSDL_WITH_X11) || defined(RT_OS_DARWIN)
    40934093/**
    40944094 * Special SDL_PushEvent function for NotifyUpdate events. These events may occur in bursts
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.h

    r98302 r99494  
    9090#endif /* VBOX_WIN32_UI */
    9191
    92 #ifdef VBOXSDL_WITH_X11
     92#if defined(VBOXSDL_WITH_X11) || defined(RT_OS_DARWIN)
    9393void PushNotifyUpdateEvent(SDL_Event *event);
    9494#endif
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