VirtualBox

Changeset 82675 in vbox


Ignore:
Timestamp:
Jan 8, 2020 4:49:01 PM (5 years ago)
Author:
vboxsync
Message:

Devices/VMMDev: Use sane (monitor is disabled) initial state when we have no hint yet, otherwise all monitors will be unconditionally enabled with X11 GA at least in the VMSVGA case. Temporary solution, eventually we'll need a way to properly signal "don't have any hint for this monitor".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r82454 r82675  
    42724272    {
    42734273        DISPLAYCHANGEREQUEST *pRequest = &pThis->displayChangeData.aRequests[i];
    4274         memset (&pRequest->lastReadDisplayChangeRequest, 0, sizeof (pRequest->lastReadDisplayChangeRequest));
     4274        memset(&pRequest->lastReadDisplayChangeRequest, 0, sizeof(pRequest->lastReadDisplayChangeRequest));
     4275        pRequest->lastReadDisplayChangeRequest.fDisplayFlags = VMMDEV_DISPLAY_DISABLED;
    42754276    }
    42764277    pThis->displayChangeData.iCurrentMonitor = 0;
     
    44574458    vmmdevAllocFacilityStatusEntry(pThis, VBoxGuestFacilityType_Graphics,        true /*fFixed*/, &TimeStampNow);
    44584459    Assert(pThis->cFacilityStatuses == 5);
     4460
     4461    /* disable all screens (no better hints known yet). */
     4462    /** @todo r=klaus need a way to represent "no hint known" */
     4463    for (unsigned i = 0; i < RT_ELEMENTS(pThis->displayChangeData.aRequests); i++)
     4464    {
     4465        DISPLAYCHANGEREQUEST *pRequest = &pThis->displayChangeData.aRequests[i];
     4466        pRequest->displayChangeRequest.fDisplayFlags = VMMDEV_DISPLAY_DISABLED;
     4467        pRequest->lastReadDisplayChangeRequest.fDisplayFlags = VMMDEV_DISPLAY_DISABLED;
     4468    }
    44594469
    44604470    /*
     
    49194929};
    49204930
    4921 #endif /* !VBOX_DEV1679
    4922 ICE_STRUCT_TESTCASE */
     4931#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
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