- Timestamp:
- Jul 17, 2007 8:37:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r3300 r3667 40 40 #endif 41 41 42 #ifndef RT_OS_DARWIN 42 43 #include <SDL_syswm.h> /* for SDL_GetWMInfo() */ 44 #endif 43 45 44 46 #include "VBoxSDL.h" … … 513 515 if (!canShow) 514 516 return E_POINTER; 517 #ifdef RT_OS_DARWIN 518 /* SDL feature not available on Quartz */ 519 *canShow = TRUE; 520 #else 515 521 SDL_SysWMinfo info; 516 522 SDL_VERSION(&info.version); 517 523 *canShow = !!SDL_GetWMInfo(&info); 524 #endif 518 525 return S_OK; 519 526 } … … 521 528 STDMETHOD(OnShowWindow) (ULONG64 *winId) 522 529 { 530 #ifndef RT_OS_DARWIN 523 531 SDL_SysWMinfo info; 524 532 SDL_VERSION(&info.version); 525 533 if (SDL_GetWMInfo(&info)) 526 534 { 527 #if defined ( __LINUX__)535 #if defined (RT_OS_LINUX) 528 536 *winId = (ULONG64) info.info.x11.wmwindow; 529 #elif defined ( __WIN__)537 #elif defined (RT_OS_WIN) 530 538 *winId = (ULONG64) info.window; 531 539 #else … … 535 543 return S_OK; 536 544 } 545 #endif /* !RT_OS_DARWIN */ 537 546 AssertFailed(); 538 547 return E_FAIL;
Note:
See TracChangeset
for help on using the changeset viewer.