VirtualBox

Changeset 55341 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 20, 2015 1:47:12 PM (10 years ago)
Author:
vboxsync
Message:

Graphics: Allow 8bpp custom video modes.

File:
1 edited

Legend:

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

    r53965 r55341  
    65686568                cParams = sscanf(pszExtraData, "%ux%ux%u", &cx, &cy, &cBits);
    65696569                if (    cParams != 3
    6570                     ||  (cBits != 16 && cBits != 24 && cBits != 32))
     6570                    ||  (cBits != 8 && cBits != 16 && cBits != 24 && cBits != 32))
    65716571                {
    65726572                    AssertMsgFailed(("Configuration error: Invalid mode data '%s' for '%s'! cBits=%d\n", pszExtraData, szExtraDataKey, cBits));
     
    65876587                switch (cBits)
    65886588                {
     6589                    case 8:
     6590                        u16DefMode = VBE_VESA_MODE_1024X768X8;
     6591                        break;
     6592
    65896593                    case 16:
    65906594                        u16DefMode = VBE_VESA_MODE_1024X768X565;
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