VirtualBox

Changeset 3667 in vbox for trunk


Ignore:
Timestamp:
Jul 17, 2007 8:37:30 AM (17 years ago)
Author:
vboxsync
Message:

no SDL_syswm on Quartz yet

File:
1 edited

Legend:

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

    r3300 r3667  
    4040#endif
    4141
     42#ifndef RT_OS_DARWIN
    4243#include <SDL_syswm.h>           /* for SDL_GetWMInfo() */
     44#endif
    4345
    4446#include "VBoxSDL.h"
     
    513515        if (!canShow)
    514516            return E_POINTER;
     517#ifdef RT_OS_DARWIN
     518        /* SDL feature not available on Quartz */
     519        *canShow = TRUE;
     520#else
    515521        SDL_SysWMinfo info;
    516522        SDL_VERSION(&info.version);
    517523        *canShow = !!SDL_GetWMInfo(&info);
     524#endif
    518525        return S_OK;
    519526    }
     
    521528    STDMETHOD(OnShowWindow) (ULONG64 *winId)
    522529    {
     530#ifndef RT_OS_DARWIN
    523531        SDL_SysWMinfo info;
    524532        SDL_VERSION(&info.version);
    525533        if (SDL_GetWMInfo(&info))
    526534        {
    527 #if defined (__LINUX__)
     535#if defined (RT_OS_LINUX)
    528536            *winId = (ULONG64) info.info.x11.wmwindow;
    529 #elif defined (__WIN__)
     537#elif defined (RT_OS_WIN)
    530538            *winId = (ULONG64) info.window;
    531539#else
     
    535543            return S_OK;
    536544        }
     545#endif /* !RT_OS_DARWIN */
    537546        AssertFailed();
    538547        return E_FAIL;
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