VirtualBox

Changeset 54995 in vbox for trunk/src


Ignore:
Timestamp:
Mar 27, 2015 4:49:51 PM (10 years ago)
Author:
vboxsync
Message:

Devices/VMMDev: fix a bug which could cause display change requests to get lost.

File:
1 edited

Legend:

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

    r54805 r54995  
    31183118          xOrigin, yOrigin, fEnabled, fChangeOrigin));
    31193119
     3120    /* we could validate the information here but hey, the guest can do that as well! */
     3121    pRequest->displayChangeRequest.xres          = cx;
     3122    pRequest->displayChangeRequest.yres          = cy;
     3123    pRequest->displayChangeRequest.bpp           = cBits;
     3124    pRequest->displayChangeRequest.display       = idxDisplay;
     3125    pRequest->displayChangeRequest.xOrigin       = xOrigin;
     3126    pRequest->displayChangeRequest.yOrigin       = yOrigin;
     3127    pRequest->displayChangeRequest.fEnabled      = fEnabled;
     3128    pRequest->displayChangeRequest.fChangeOrigin = fChangeOrigin;
     3129
     3130    pRequest->fPending = !fSameResolution;
     3131
    31203132    if (!fSameResolution)
    31213133    {
    31223134        LogRel(("VMMDev::SetVideoModeHint: got a video mode hint (%dx%dx%d)@(%dx%d),(%d;%d) at %d\n",
    31233135                cx, cy, cBits, xOrigin, yOrigin, fEnabled, fChangeOrigin, idxDisplay));
    3124 
    3125         /* we could validate the information here but hey, the guest can do that as well! */
    3126         pRequest->displayChangeRequest.xres          = cx;
    3127         pRequest->displayChangeRequest.yres          = cy;
    3128         pRequest->displayChangeRequest.bpp           = cBits;
    3129         pRequest->displayChangeRequest.display       = idxDisplay;
    3130         pRequest->displayChangeRequest.xOrigin       = xOrigin;
    3131         pRequest->displayChangeRequest.yOrigin       = yOrigin;
    3132         pRequest->displayChangeRequest.fEnabled      = fEnabled;
    3133         pRequest->displayChangeRequest.fChangeOrigin = fChangeOrigin;
    3134 
    3135         pRequest->fPending = true;
    31363136
    31373137        /* IRQ so the guest knows what's going on */
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