VirtualBox

Changeset 51836 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 3, 2014 9:40:21 AM (11 years ago)
Author:
vboxsync
Message:

DevVGA, Main: fFailOnResize parameter for pfnUpdateDisplayAll

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r51761 r51836  
    46224622 * Internal vgaPortUpdateDisplayAll worker called under pThis->CritSect.
    46234623 */
    4624 static int updateDisplayAll(PVGASTATE pThis)
     4624static int updateDisplayAll(PVGASTATE pThis, bool fFailOnResize)
    46254625{
    46264626    PPDMDEVINS pDevIns = pThis->CTX_SUFF(pDevIns);
     
    46454645    pThis->graphic_mode = -1; /* force full update */
    46464646
    4647     return vga_update_display(pThis, true, true, true,
     4647    return vga_update_display(pThis, true, fFailOnResize, true,
    46484648            pThis->pDrv, &pThis->graphic_mode);
    46494649}
    46504650
    46514651
    4652 int vgaUpdateDisplayAll(PVGASTATE pThis)
     4652int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize)
    46534653{
    46544654#ifdef DEBUG_sunlover
     
    46594659    AssertRC(rc);
    46604660
    4661     rc = updateDisplayAll(pThis);
     4661    rc = updateDisplayAll(pThis, fFailOnResize);
    46624662
    46634663    PDMCritSectLeave(&pThis->CritSect);
     
    46714671 * @see     PDMIKEYBOARDPORT::pfnUpdateDisplayAll() for details.
    46724672 */
    4673 static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface)
     4673static DECLCALLBACK(int) vgaPortUpdateDisplayAll(PPDMIDISPLAYPORT pInterface, bool fFailOnResize)
    46744674{
    46754675    PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface);
     
    46784678    /* This is called both in VBVA mode and normal modes. */
    46794679
    4680     return vgaUpdateDisplayAll(pThis);
     4680    return vgaUpdateDisplayAll(pThis, fFailOnResize);
    46814681}
    46824682
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r51461 r51836  
    651651int vboxVBVALoadStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
    652652
    653 int vgaUpdateDisplayAll(PVGASTATE pThis);
     653int vgaUpdateDisplayAll(PVGASTATE pThis, bool fFailOnResize);
    654654
    655655# ifdef VBOX_WITH_VDMA
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r51816 r51836  
    11431143    }
    11441144
    1145     vgaUpdateDisplayAll(pVdma->pVGAState);
     1145    vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false);
    11461146
    11471147    return VINF_SUCCESS;
     
    16061606
    16071607            /* do vgaUpdateDisplayAll right away */
    1608             vgaUpdateDisplayAll(pVdma->pVGAState);
     1608            vgaUpdateDisplayAll(pVdma->pVGAState, /* fFailOnResize = */ false);
    16091609
    16101610            return VBoxVDMAThreadTerm(&pVdma->Thread, NULL, NULL, false);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette