VirtualBox

Changeset 33178 in vbox for trunk


Ignore:
Timestamp:
Oct 16, 2010 8:25:02 PM (14 years ago)
Author:
vboxsync
Message:

VGA: Improve compatibility with bad old VESA software (Sanctuary Woods).

File:
1 edited

Legend:

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

    r33174 r33178  
    948948            else
    949949                max_bank = s->vbe_bank_max;
     950            /* Old software may pass garbage in the high byte of bank. If the maximum
     951             * bank fits into a single byte, toss the high byte the user supplied.
     952             */
     953            if (max_bank < 0x100)
     954                val &= 0xff;
    950955            if (val > max_bank)
    951956                val = max_bank;
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