Changeset 67918 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 12, 2017 9:30:24 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116910
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r67914 r67918 1778 1778 GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/EfiDeviceProps", &deviceProps); 1779 1779 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); 1783 1785 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); 1789 1793 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); 1794 1800 if (!strTmp.isEmpty()) 1795 u32 UgaVertical= strTmp.toUInt32();1801 u32VerticalResolution = strTmp.toUInt32(); 1796 1802 1797 1803 /* … … 1812 1818 InsertConfigBytes(pCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1813 1819 InsertConfigInteger(pCfg, "64BitEntry", f64BitEntry); /* boolean */ 1814 InsertConfigInteger(pCfg, "G opMode", 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); 1817 1823 1818 1824 /* 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.