- Timestamp:
- Jul 3, 2014 9:40:21 AM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r51761 r51836 4622 4622 * Internal vgaPortUpdateDisplayAll worker called under pThis->CritSect. 4623 4623 */ 4624 static int updateDisplayAll(PVGASTATE pThis )4624 static int updateDisplayAll(PVGASTATE pThis, bool fFailOnResize) 4625 4625 { 4626 4626 PPDMDEVINS pDevIns = pThis->CTX_SUFF(pDevIns); … … 4645 4645 pThis->graphic_mode = -1; /* force full update */ 4646 4646 4647 return vga_update_display(pThis, true, true, true,4647 return vga_update_display(pThis, true, fFailOnResize, true, 4648 4648 pThis->pDrv, &pThis->graphic_mode); 4649 4649 } 4650 4650 4651 4651 4652 int vgaUpdateDisplayAll(PVGASTATE pThis )4652 int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize) 4653 4653 { 4654 4654 #ifdef DEBUG_sunlover … … 4659 4659 AssertRC(rc); 4660 4660 4661 rc = updateDisplayAll(pThis );4661 rc = updateDisplayAll(pThis, fFailOnResize); 4662 4662 4663 4663 PDMCritSectLeave(&pThis->CritSect); … … 4671 4671 * @see PDMIKEYBOARDPORT::pfnUpdateDisplayAll() for details. 4672 4672 */ 4673 static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface )4673 static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface, bool fFailOnResize) 4674 4674 { 4675 4675 PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface); … … 4678 4678 /* This is called both in VBVA mode and normal modes. */ 4679 4679 4680 return vgaUpdateDisplayAll(pThis );4680 return vgaUpdateDisplayAll(pThis, fFailOnResize); 4681 4681 } 4682 4682 -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r51461 r51836 651 651 int vboxVBVALoadStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 652 652 653 int vgaUpdateDisplayAll(PVGASTATE pThis );653 int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize); 654 654 655 655 # ifdef VBOX_WITH_VDMA -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r51816 r51836 1143 1143 } 1144 1144 1145 vgaUpdateDisplayAll(pVdma->pVGAState );1145 vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false); 1146 1146 1147 1147 return VINF_SUCCESS; … … 1606 1606 1607 1607 /* do vgaUpdateDisplayAll right away */ 1608 vgaUpdateDisplayAll(pVdma->pVGAState );1608 vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false); 1609 1609 1610 1610 return VBoxVDMAThreadTerm(&pVdma->Thread, NULL, NULL, false); -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r51762 r51836 1580 1580 /* Process any pending VGA device changes, resize. */ 1581 1581 Assert(!vbvaLockIsOwner()); 1582 mpDrv->pUpPort->pfnUpdateDisplay (mpDrv->pUpPort);1582 mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false); 1583 1583 } 1584 1584 … … 1590 1590 { 1591 1591 Assert(!vbvaLockIsOwner()); 1592 mpDrv->pUpPort->pfnUpdateDisplay (mpDrv->pUpPort);1592 mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false); 1593 1593 } 1594 1594 … … 2047 2047 /* VideoAccel was disabled because of a failure, switching back to VGA updates. Redraw the screen. */ 2048 2048 Assert(!vbvaLockIsOwner()); 2049 mpDrv->pUpPort->pfnUpdateDisplay (mpDrv->pUpPort);2049 mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort, /* fFailOnResize = */ false); 2050 2050 } 2051 2051 } … … 3294 3294 { 3295 3295 Assert(!pDisplay->vbvaLockIsOwner()); 3296 pDisplay->mpDrv->pUpPort->pfnUpdateDisplayAll(pDisplay->mpDrv->pUpPort );3296 pDisplay->mpDrv->pUpPort->pfnUpdateDisplayAll(pDisplay->mpDrv->pUpPort, /* fFailOnResize = */ true); 3297 3297 } 3298 3298 else … … 4573 4573 /* Force full screen update, because VGA device must take control, do resize, etc. */ 4574 4574 Assert(!pThis->vbvaLockIsOwner()); 4575 pThis->mpDrv->pUpPort->pfnUpdateDisplay (pThis->mpDrv->pUpPort);4575 pThis->mpDrv->pUpPort->pfnUpdateDisplayAll(pThis->mpDrv->pUpPort, /* fFailOnResize = */ false); 4576 4576 } 4577 4577 }
Note:
See TracChangeset
for help on using the changeset viewer.