- Timestamp:
- May 9, 2016 6:56:00 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmifs.h
r59252 r60905 949 949 * @param pScreen The data of screen being resized. 950 950 * @param pvVRAM Address of the guest VRAM. 951 * @param fResetInputMapping Whether to reset the absolute pointing device to screen position co-ordinate 952 * mapping. Needed for real resizes, as the caller on the guest may not know how 953 * to set the mapping. Not wanted when we restore a saved state and are resetting 954 * the mode. 951 955 * @thread if render thread mode is on (fRenderThreadMode that was passed to pfnVBVAEnable is TRUE) - the render thread pfnVBVAEnable was called in, 952 956 * otherwise - the emulation thread. 953 957 */ 954 DECLR3CALLBACKMEMBER(int, pfnVBVAResize,(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, const PVBVAINFOSCREEN pScreen, void *pvVRAM ));958 DECLR3CALLBACKMEMBER(int, pfnVBVAResize,(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, const PVBVAINFOSCREEN pScreen, void *pvVRAM, bool fResetInputMapping)); 955 959 956 960 /** -
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r60465 r60905 547 547 } 548 548 549 static int vbvaResize(PVGASTATE pVGAState, VBVAVIEW *pView, const VBVAINFOSCREEN *pNewScreen )549 static int vbvaResize(PVGASTATE pVGAState, VBVAVIEW *pView, const VBVAINFOSCREEN *pNewScreen, bool fResetInputMapping) 550 550 { 551 551 /* Callers ensure that pNewScreen contains valid data. */ … … 555 555 556 556 uint8_t *pu8VRAM = pVGAState->vram_ptrR3 + pView->view.u32ViewOffset; 557 return pVGAState->pDrv->pfnVBVAResize (pVGAState->pDrv, &pView->view, &pView->screen, pu8VRAM );557 return pVGAState->pDrv->pfnVBVAResize (pVGAState->pDrv, &pView->view, &pView->screen, pu8VRAM, fResetInputMapping); 558 558 } 559 559 … … 2060 2060 if (RT_SUCCESS(rc)) 2061 2061 { 2062 vbvaResize(pVGAState, pView, &pView->screen );2062 vbvaResize(pVGAState, pView, &pView->screen, false); 2063 2063 } 2064 2064 else … … 2266 2266 && screen.u32StartOffset <= pView->u32ViewSize - (uint32_t)u64ScreenSize) 2267 2267 { 2268 vbvaResize(pVGAState, &pCtx->aViews[screen.u32ViewIndex], &screen );2268 vbvaResize(pVGAState, &pCtx->aViews[screen.u32ViewIndex], &screen, true); 2269 2269 return VINF_SUCCESS; 2270 2270 } -
trunk/src/VBox/Main/include/DisplayImpl.h
r57088 r60905 343 343 uint32_t cx, uint32_t cy); 344 344 static DECLCALLBACK(int) i_displayVBVAResize(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, 345 const PVBVAINFOSCREEN pScreen, void *pvVRAM); 345 const PVBVAINFOSCREEN pScreen, void *pvVRAM, 346 bool fResetInputMapping); 346 347 static DECLCALLBACK(int) i_displayVBVAMousePointerShape(PPDMIDISPLAYCONNECTOR pInterface, bool fVisible, bool fAlpha, 347 348 uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r59786 r60905 3921 3921 3922 3922 DECLCALLBACK(int) Display::i_displayVBVAResize(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, 3923 const PVBVAINFOSCREEN pScreen, void *pvVRAM )3923 const PVBVAINFOSCREEN pScreen, void *pvVRAM, bool fResetInputMapping) 3924 3924 { 3925 3925 LogRelFlowFunc(("pScreen %p, pvVRAM %p\n", pScreen, pvVRAM)); … … 4012 4012 pFBInfo->flags = pScreen->u16Flags; 4013 4013 4014 pThis->xInputMappingOrigin = 0; 4015 pThis->yInputMappingOrigin = 0; 4016 pThis->cxInputMapping = 0; 4017 pThis->cyInputMapping = 0; 4014 if (fResetInputMapping) 4015 { 4016 pThis->xInputMappingOrigin = 0; 4017 pThis->yInputMappingOrigin = 0; 4018 pThis->cxInputMapping = 0; 4019 pThis->cyInputMapping = 0; 4020 } 4018 4021 4019 4022 if (fNewOrigin)
Note:
See TracChangeset
for help on using the changeset viewer.