Changeset 12449 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Sep 15, 2008 8:16:14 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 36526
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r11419 r12449 379 379 380 380 /** 381 * Returns handle of window where framebuffer context is being drawn 382 * 383 * @returns COM status code. 384 * @param winId Handle of associated window. 385 */ 386 STDMETHODIMP VBoxSDLFB::COMGETTER(WinId)(uint64_t *winId) 387 { 388 if (!winId) 389 return E_POINTER; 390 *winId = mWinId; 391 return S_OK; 392 } 393 394 /** 381 395 * Notify framebuffer of an update. 382 396 * … … 1403 1417 1404 1418 /** 1419 * Returns associated window handle. We return NULL here. 1420 * 1421 * @returns COM status code 1422 * @param winId Address of result buffer. 1423 */ 1424 STDMETHODIMP VBoxSDLFBOverlay::COMGETTER(WinId)(ULONG64 *winId) 1425 { 1426 LogFlow(("VBoxSDLFBOverlay::GetWinId\n")); 1427 if (!winId) 1428 return E_INVALIDARG; 1429 *winId = 0; 1430 return S_OK; 1431 } 1432 1433 1434 /** 1405 1435 * Lock the overlay. This should not be used - lock the parent IFramebuffer instead. 1406 1436 * -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r11400 r12449 99 99 STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction); 100 100 STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay); 101 STDMETHOD(COMGETTER(WinId)) (uint64_t *winId); 101 102 102 103 STDMETHOD(NotifyUpdate)(ULONG x, ULONG y, … … 135 136 #endif 136 137 void uninit(); 138 void setWinId(uint64_t winId) { mWinId = winId; } 137 139 138 140 private: … … 176 178 /** flag whether we print out SDL information */ 177 179 bool mfShowSDLConfig; 180 /** handle to window where framebuffer context is being drawn*/ 181 uint64_t mWinId; 178 182 #ifdef VBOX_SECURELABEL 179 183 /** current secure label text */ … … 263 267 STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction); 264 268 STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay); 269 STDMETHOD(COMGETTER(WinId)) (ULONG64 *winId); 265 270 266 271 STDMETHOD(Lock)(); -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r12320 r12449 1057 1057 #endif 1058 1058 #ifdef VBOX_WIN32_UI 1059 bool fWin32UI = false; 1059 bool fWin32UI = true; 1060 uint64_t winId = 0; 1060 1061 #endif 1061 1062 bool fShowSDLConfig = false; … … 1920 1921 { 1921 1922 /* initialize the Win32 user interface inside which SDL will be embedded */ 1922 if (initUI(fResizable ))1923 if (initUI(fResizable, winId)) 1923 1924 return 1; 1924 1925 } … … 1934 1935 goto leave; 1935 1936 } 1937 1938 #ifdef VBOX_WIN32_UI 1939 gpFrameBuffer->setWinId(winId); 1940 #endif 1941 1936 1942 if (!gpFrameBuffer->initialized()) 1937 1943 goto leave; -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.h
r11576 r12449 66 66 67 67 #ifdef VBOX_WIN32_UI 68 int initUI(bool fResizable );68 int initUI(bool fResizable, uint64_t &winId); 69 69 int uninitUI(void); 70 70 int resizeUI(uint16_t width, uint16_t height);
Note:
See TracChangeset
for help on using the changeset viewer.