VirtualBox

Changeset 50260 in vbox for trunk


Ignore:
Timestamp:
Jan 28, 2014 2:19:18 PM (11 years ago)
Author:
vboxsync
Message:

DisplayImpl: force resize when VBVA is reenabled.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r50178 r50260  
    9292#ifdef VBOX_WITH_HGSMI
    9393    bool fVBVAEnabled;
     94    bool fVBVAForceResize;
    9495    uint32_t cVBVASkipUpdate;
    9596    struct
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r50251 r50260  
    493493#ifdef VBOX_WITH_HGSMI
    494494        maFramebuffers[ul].fVBVAEnabled = false;
     495        maFramebuffers[ul].fVBVAForceResize = false;
    495496        maFramebuffers[ul].cVBVASkipUpdate = 0;
    496497        RT_ZERO(maFramebuffers[ul].vbvaSkippedRect);
     
    41534154    pThis->maFramebuffers[uScreenId].fVBVAEnabled = true;
    41544155    pThis->maFramebuffers[uScreenId].pVBVAHostFlags = pHostFlags;
     4156    pThis->maFramebuffers[uScreenId].fVBVAForceResize = true;
    41554157
    41564158    vbvaSetMemoryFlagsHGSMI(uScreenId, pThis->mfu32SupportedOrders, pThis->mfVideoAccelVRDP, &pThis->maFramebuffers[uScreenId]);
     
    41854187
    41864188    pFBInfo->fVBVAEnabled = false;
     4189    pFBInfo->fVBVAForceResize = false;
    41874190
    41884191    vbvaSetMemoryFlagsHGSMI(uScreenId, 0, false, pFBInfo);
     
    43894392            "    pFBInfo->pendingResize.flags       0x%04X\n"
    43904393            "    pFBInfo->fVBVAEnabled    %d\n"
     4394            "    pFBInfo->fVBVAForceResize %d\n"
    43914395            "    pFBInfo->cVBVASkipUpdate %d\n"
    43924396            "    pFBInfo->vbvaSkippedRect %d-%d %d-%d\n"
     
    44354439            pFBInfo->pendingResize.flags,
    44364440            pFBInfo->fVBVAEnabled,
     4441            pFBInfo->fVBVAForceResize,
    44374442            pFBInfo->cVBVASkipUpdate,
    44384443            pFBInfo->vbvaSkippedRect.xLeft,
     
    44804485     */
    44814486    bool fResize = pFBInfo->fDisabled || pFBInfo->pFramebuffer.isNull();
     4487
     4488    if (pFBInfo->fVBVAForceResize)
     4489    {
     4490        /* VBVA was just enabled. Do the resize. */
     4491        fResize = true;
     4492        pFBInfo->fVBVAForceResize = false;
     4493    }
    44824494
    44834495    /* Check if this is a real resize or a notification about the screen origin.
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