VirtualBox

Changeset 55810 in vbox


Ignore:
Timestamp:
May 11, 2015 8:27:08 PM (9 years ago)
Author:
vboxsync
Message:

VBoxSDL: Made it build again on darwin, added hack for playing with OpenGL.

Location:
trunk/src/VBox/Frontends/VBoxSDL
Files:
1 added
4 edited

Legend:

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

    r55401 r55810  
    387387 * @param   winId Handle of associated window.
    388388 */
    389 STDMETHODIMP VBoxSDLFB::COMGETTER(WinId)(int64_t *winId)
     389STDMETHODIMP VBoxSDLFB::COMGETTER(WinId)(LONG64 *winId)
    390390{
    391391    if (!winId)
    392392        return E_POINTER;
     393#ifdef RT_OS_DARWIN
     394    if (mWinId == NULL) /* (In case it failed the first time.) */
     395        mWinId = (intptr_t)VBoxSDLGetDarwinWindowId();
     396#endif
    393397    *winId = mWinId;
    394398    return S_OK;
     
    920924    if (SDL_GetWMInfo(&info))
    921925        mWinId = (LONG64) info.info.x11.wmwindow;
     926# elif defined(RT_OS_DARWIN)
     927    mWinId = (intptr_t)VBoxSDLGetDarwinWindowId();
    922928# else
    923929    /* XXX ignore this for other architectures */
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r55401 r55810  
    8080    STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction);
    8181    STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay);
    82     STDMETHOD(COMGETTER(WinId)) (int64_t *winId);
     82    STDMETHOD(COMGETTER(WinId)) (LONG64 *winId);
    8383    STDMETHOD(COMGETTER(Capabilities))(ComSafeArrayOut(FramebufferCapabilities_T, aCapabilities));
    8484
  • trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk

    r55789 r55810  
    4848        Helper.cpp
    4949VBoxSDL_SOURCES.darwin = \
    50         VBoxSDLMain-darwin.m
     50        VBoxSDLMain-darwin.m \
     51       Framebuffer-darwin.m
    5152
    5253VBoxSDL_DEFS       =
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.h

    r55401 r55810  
    2121#define __H_VBOXSDL
    2222
     23#include <iprt/cdefs.h>
    2324#ifdef RT_OS_WINDOWS /** @todo check why we need to do this on windows. */
    2425/* convince SDL to not overload main() */
     
    7475int  PushSDLEventForSure(SDL_Event *event);
    7576
    76 #endif // __H_VBOXSDL
     77#ifdef RT_OS_DARWIN
     78RT_C_DECLS_BEGIN
     79void *VBoxSDLGetDarwinWindowId(void);
     80RT_C_DECLS_END
     81#endif
     82
     83#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