Changeset 55810 in vbox
- Timestamp:
- May 11, 2015 8:27:08 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 1 added
- 4 edited
-
Framebuffer-darwin.m (added)
-
Framebuffer.cpp (modified) (2 diffs)
-
Framebuffer.h (modified) (1 diff)
-
Makefile.kmk (modified) (1 diff)
-
VBoxSDL.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r55401 r55810 387 387 * @param winId Handle of associated window. 388 388 */ 389 STDMETHODIMP VBoxSDLFB::COMGETTER(WinId)( int64_t*winId)389 STDMETHODIMP VBoxSDLFB::COMGETTER(WinId)(LONG64 *winId) 390 390 { 391 391 if (!winId) 392 392 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 393 397 *winId = mWinId; 394 398 return S_OK; … … 920 924 if (SDL_GetWMInfo(&info)) 921 925 mWinId = (LONG64) info.info.x11.wmwindow; 926 # elif defined(RT_OS_DARWIN) 927 mWinId = (intptr_t)VBoxSDLGetDarwinWindowId(); 922 928 # else 923 929 /* XXX ignore this for other architectures */ -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r55401 r55810 80 80 STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction); 81 81 STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay); 82 STDMETHOD(COMGETTER(WinId)) ( int64_t*winId);82 STDMETHOD(COMGETTER(WinId)) (LONG64 *winId); 83 83 STDMETHOD(COMGETTER(Capabilities))(ComSafeArrayOut(FramebufferCapabilities_T, aCapabilities)); 84 84 -
trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk
r55789 r55810 48 48 Helper.cpp 49 49 VBoxSDL_SOURCES.darwin = \ 50 VBoxSDLMain-darwin.m 50 VBoxSDLMain-darwin.m \ 51 Framebuffer-darwin.m 51 52 52 53 VBoxSDL_DEFS = -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.h
r55401 r55810 21 21 #define __H_VBOXSDL 22 22 23 #include <iprt/cdefs.h> 23 24 #ifdef RT_OS_WINDOWS /** @todo check why we need to do this on windows. */ 24 25 /* convince SDL to not overload main() */ … … 74 75 int PushSDLEventForSure(SDL_Event *event); 75 76 76 #endif // __H_VBOXSDL 77 #ifdef RT_OS_DARWIN 78 RT_C_DECLS_BEGIN 79 void *VBoxSDLGetDarwinWindowId(void); 80 RT_C_DECLS_END 81 #endif 82 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.

