Changeset 27708 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Mar 25, 2010 2:36:56 PM (15 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r24782 r27708 1039 1039 } 1040 1040 1041 DECLEXPORT(void) renderspuReparentWindow(GLint window) 1042 { 1043 WindowInfo *pWindow; 1044 CRASSERT(window >= 0); 1045 1046 pWindow = (WindowInfo *) crHashtableSearch(render_spu.windowTable, window); 1047 1048 if (!pWindow) 1049 { 1050 crDebug("Render SPU: Attempt to reparent invalid window (%d)", window); 1051 return; 1052 } 1053 1054 #if defined(WINDOWS) || defined(GLX) 1055 renderspu_SystemReparentWindow(pWindow); 1056 #endif 1057 } 1041 1058 1042 1059 #if defined(DARWIN) -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r22509 r27708 315 315 extern void RENDER_APIENTRY renderspuSwapBuffers( GLint window, GLint flags ); 316 316 317 #if defined(WINDOWS) || defined(GLX) 318 extern void renderspu_SystemReparentWindow(WindowInfo *window); 319 #endif 320 317 321 #ifdef __cplusplus 318 322 extern "C" { … … 320 324 DECLEXPORT(void) renderspuSetWindowId(uint64_t winId); 321 325 DECLEXPORT(void) renderspuSetRootVisibleRegion(GLint cRects, GLint *pRects); 326 DECLEXPORT(void) renderspuReparentWindow(GLint window); 322 327 #ifdef __cplusplus 323 328 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c
r21476 r27708 1673 1673 } 1674 1674 } 1675 1676 void renderspu_SystemReparentWindow(WindowInfo *window) 1677 { 1678 Window parent; 1679 1680 parent = render_spu_parent_window_id>0 ? render_spu_parent_window_id : 1681 RootWindow(window->visual->dpy, window->visual->visual->screen); 1682 1683 XReparentWindow(window->visual->dpy, window->window, parent, window->x, window->y); 1684 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r20583 r27708 84 84 crWarning( "Render SPU: caught WM_CLOSE -- quitting." ); 85 85 exit( 0 ); 86 break; 87 88 case WM_DESTROY: 89 crDebug( "Render SPU: caught WM_DESTROY for our window" ); 86 90 break; 87 91 … … 480 484 /* NO ERROR CODE FOR SHOWWINDOW */ 481 485 crDebug( "Render SPU: Showing the window" ); 486 crDebug("renderspu_SystemCreateWindow: showwindow: %x", window->hWnd); 482 487 ShowWindow( window->hWnd, SW_SHOWNORMAL ); 483 488 } … … 724 729 /* NO ERROR CODE FOR SHOWWINDOW */ 725 730 crDebug( "Render SPU: Showing the window" ); 731 crDebug("renderspu_SystemVBoxCreateWindow: showwindow: %x", window->hWnd); 726 732 ShowWindow( window->hWnd, SW_SHOWNORMAL ); 727 733 } … … 758 764 { 759 765 if (showIt) 766 { 767 crDebug("SHOW renderspu_SystemShowWindow: %x", window->hWnd); 760 768 ShowWindow( window->hWnd, SW_SHOWNORMAL ); 769 } 761 770 else 771 { 772 crDebug("HIDE renderspu_SystemShowWindow: %x", window->hWnd); 762 773 ShowWindow( window->hWnd, SW_HIDE ); 774 } 763 775 } 764 776 … … 859 871 } 860 872 873 crDebug("MakeCurrent 0x%x, 0x%x", window->device_context, context->hRC); 861 874 if (!render_spu.ws.wglMakeCurrent(window->device_context, context->hRC)) 862 875 { … … 1044 1057 } 1045 1058 } 1059 1060 void renderspu_SystemReparentWindow(WindowInfo *window) 1061 { 1062 SetParent(window->hWnd, render_spu_parent_window_id); 1063 }
Note:
See TracChangeset
for help on using the changeset viewer.