VirtualBox

Changeset 37725 in vbox for trunk


Ignore:
Timestamp:
Jul 1, 2011 10:45:05 AM (13 years ago)
Author:
vboxsync
Message:

Devices/VGA: make sure that physical resolution is properly bounded by virtual resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r37647 r37725  
    19511951    if (s->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) {
    19521952        width = s->vbe_regs[VBE_DISPI_INDEX_XRES];
    1953         height = s->vbe_regs[VBE_DISPI_INDEX_YRES];
     1953        height = RT_MIN(s->vbe_regs[VBE_DISPI_INDEX_YRES],
     1954                        s->vbe_regs[VBE_DISPI_INDEX_VIRT_HEIGHT]);
    19541955    } else
    19551956#endif
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