third_party/virtualbox/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
/**
 * Worker for vmsvga3dChangeMode that resizes a context.
 *
 * @param   pThis               The VGA device instance data.
 * @param   pState              The VMSVGA3d state.
 * @param   pContext            The context.
 */
Worker for vmsvga3dChangeMode that resizes a context.
@param   pThis               The VGA device instance data.
@param   pState              The VMSVGA3d state.
@param   pContext            The context.
Worker for vmsvga3dChangeMode that resizes a context . @param pThis The VGA device instance data . @param pState The VMSVGA3d state . @param pContext The context .
static void vmsvga3dChangeModeOneContext(PVGASTATE pThis, PVMSVGA3DSTATE pState, PVMSVGA3DCONTEXT pContext)
{
#ifdef RT_OS_WINDOWS
    CREATESTRUCT          cs;
    RT_ZERO(cs);
    cs.cx = pThis->svga.uWidth;
    cs.cy = pThis->svga.uHeight;
    int rc = vmsvga3dSendThreadMessage(pState->pWindowThread, pState->WndRequestSem, WM_VMSVGA3D_RESIZEWINDOW, (WPARAM)pContext->hwnd, (LPARAM)&cs);
    AssertRC(rc);
#elif defined(RT_OS_DARWIN)
    RT_NOREF(pState);
    vmsvga3dCocoaViewSetSize(pContext->cocoaView, pThis->svga.uWidth, pThis->svga.uHeight);
#elif defined(RT_OS_LINUX)
    XWindowChanges wc;
    wc.width = pThis->svga.uWidth;
    wc.height = pThis->svga.uHeight;
    XConfigureWindow(pState->display, pContext->window, CWWidth | CWHeight, &wc);
#endif
}
static void vmsvga3dChangeModeOneContext ( PVGASTATE pThis , PVMSVGA3DSTATE pState , PVMSVGA3DCONTEXT pContext ) { #ifdef RT_OS_WINDOWS CREATESTRUCT cs ; RT_ZERO ( cs ) ; cs . cx = pThis -> svga . uWidth ; cs . cy = pThis -> svga . uHeight ; int rc = vmsvga3dSendThreadMessage ( pState -> pWindowThread , pState -> WndRequestSem , WM_VMSVGA3D_RESIZEWINDOW , ( WPARAM ) pContext -> hwnd , ( LPARAM ) & cs ) ; AssertRC ( rc ) ; #elif defined ( RT_OS_DARWIN ) RT_NOREF ( pState ) ; vmsvga3dCocoaViewSetSize ( pContext -> cocoaView , pThis -> svga . uWidth , pThis -> svga . uHeight ) ; #elif defined ( RT_OS_LINUX ) XWindowChanges wc ; wc . width = pThis -> svga . uWidth ; wc . height = pThis -> svga . uHeight ; XConfigureWindow ( pState -> display , pContext -> window , CWWidth | CWHeight , & wc ) ; #endif }
Worker for vmsvga3dChangeMode that resizes a context.
Worker for vmsvga3dChangeMode that resizes a context .
/* Resize the window. */