VirtualBox

Changeset 95467 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jul 1, 2022 10:35:27 AM (3 years ago)
Author:
vboxsync
Message:

Additions: X11: VBoxClient --vmsvga: Only destroy unused video modes if new mode was creaded, bugref:10222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r95466 r95467  
    13301330        x11Context.pXRRAddOutputMode(x11Context.pDisplay, outputId, pModeInfo->id);
    13311331#endif
    1332 
    1333     /* Destroy and forget mode created on previous guest screen resize event. */
    1334     if (   aPrevMode[outputId] > 0
    1335         && pModeInfo->id != aPrevMode[outputId])
     1332    /* If mode has been newly created, destroy and forget mode created on previous guest screen resize event. */
     1333    if (   aPrevMode[iOutputIndex] > 0
     1334        && pModeInfo->id != aPrevMode[iOutputIndex]
     1335        && fNewMode)
    13361336    {
    13371337        VBClLogInfo("removing unused mode %u\n", aPrevMode[outputId]);
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