VirtualBox

Changeset 67918 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 12, 2017 9:30:24 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116910
Message:

Main/Console: EFI graphics resolution cleanup, prepare for resolution based mode selection by default
Devices/EFI: use new CFGM keys (fall back to old ones if necessary), clean up variable and info field naming
Devices/EFI/Firmware: for both GOP and UGA (which is very deprecated) try to find the mode by resolution if possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r67914 r67918  
    17781778            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiDeviceProps", &deviceProps);
    17791779
    1780             /* Get GOP mode settings */
    1781             uint32_t u32GopMode = UINT32_MAX;
    1782             GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiGopMode", &strTmp);
     1780            /* Get graphics mode settings */
     1781            uint32_t u32GraphicsMode = UINT32_MAX;
     1782            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiGraphicsMode", &strTmp);
     1783            if (strTmp.isEmpty())
     1784                GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiGopMode", &strTmp);
    17831785            if (!strTmp.isEmpty())
    1784                 u32GopMode = strTmp.toUInt32();
    1785 
    1786             /* UGA mode settings */
    1787             uint32_t u32UgaHorizontal = 0;
    1788             GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiUgaHorizontalResolution", &strTmp);
     1786                u32GraphicsMode = strTmp.toUInt32();
     1787
     1788            /* Get graphics resolution settings */
     1789            uint32_t u32HorizontalResolution = 0;
     1790            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiHorizontalResolution", &strTmp);
     1791            if (strTmp.isEmpty())
     1792                GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiUgaHorizontalResolution", &strTmp);
    17891793            if (!strTmp.isEmpty())
    1790                 u32UgaHorizontal = strTmp.toUInt32();
    1791 
    1792             uint32_t u32UgaVertical = 0;
    1793             GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiUgaVerticalResolution", &strTmp);
     1794                u32HorizontalResolution = strTmp.toUInt32();
     1795
     1796            uint32_t u32VerticalResolution = 0;
     1797            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiVerticalResolution", &strTmp);
     1798            if (strTmp.isEmpty())
     1799                GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiUgaVerticalResolution", &strTmp);
    17941800            if (!strTmp.isEmpty())
    1795                 u32UgaVertical = strTmp.toUInt32();
     1801                u32VerticalResolution = strTmp.toUInt32();
    17961802
    17971803            /*
     
    18121818            InsertConfigBytes(pCfg,    "UUID", &HardwareUuid,sizeof(HardwareUuid));
    18131819            InsertConfigInteger(pCfg,  "64BitEntry",  f64BitEntry); /* boolean */
    1814             InsertConfigInteger(pCfg,  "GopMode",     u32GopMode);
    1815             InsertConfigInteger(pCfg,  "UgaHorizontalResolution", u32UgaHorizontal);
    1816             InsertConfigInteger(pCfg,  "UgaVerticalResolution", u32UgaVertical);
     1820            InsertConfigInteger(pCfg,  "GraphicsMode",  u32GraphicsMode);
     1821            InsertConfigInteger(pCfg,  "HorizontalResolution", u32HorizontalResolution);
     1822            InsertConfigInteger(pCfg,  "VerticalResolution", u32VerticalResolution);
    18171823
    18181824            /* For OS X guests we'll force passing host's DMI info to the guest */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette