VirtualBox

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


Ignore:
Timestamp:
Apr 29, 2008 3:24:58 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: fixed a bug in the X.org 7.0 graphics driver whereby invalid size hints were not ignored

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_70.c

    r8155 r8472  
    468468    /* Query the host for the preferred resolution and colour depth */
    469469    {
    470         uint32_t cx, cy, iDisplay, cBits = 24;
     470        uint32_t cx = 0, cy = 0, iDisplay = 0, cBits = 24;
    471471
    472472        if (vboxGetDisplayChangeRequest(pScrn, &cx, &cy, &cBits, &iDisplay,
     
    476476            if (cBits != 16)
    477477                cBits = 24;
    478             cx -= cx % 8;
    479             pcHostModeName = XNFprintf("%dx%d", cx, cy);
     478            if ((0 != cx) && (0 != cy)) {
     479                cx -= cx % 8;
     480                pcHostModeName = XNFprintf("%dx%d", cx, cy);
     481            }
    480482        }
    481483        if (!xf86SetDepthBpp(pScrn, cBits, 0, 0, Support32bppFb))
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