VirtualBox

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

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

File:
1 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 */
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