Changeset 4676 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 10, 2007 3:56:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r4514 r4676 1893 1893 /* Check if the Guest Video RAM enough for the seamless mode */ 1894 1894 QRect screen = QApplication::desktop()->screenGeometry (this); 1895 ULONG vRamSize = csession.GetMachine().GetVRAMSize(); 1896 if (aOn && 1897 (ULONG64) vRamSize * _1M * 8 < 1898 (ULONG64) screen.width() * screen.height() * QColor::numBitPlanes()) 1895 ULONG64 availBits = (csession.GetMachine().GetVRAMSize() /* vram */ 1896 * _1M /* mb to bytes */ 1897 - 4096 /* adapter info */ 1898 - _1M /* current cache - may be changed in future */) 1899 / csession.GetMachine().GetMonitorCount() 1900 * 8; /* to bits */ 1901 ULONG64 usedBits = screen.width() /* display width */ 1902 * screen.height() /* display height */ 1903 * QColor::numBitPlanes(); /* bit per pixel */ 1904 1905 if (aOn && (availBits < usedBits)) 1899 1906 { 1900 1907 vboxProblem().cannotEnterSeamlessMode (screen.width(),
Note:
See TracChangeset
for help on using the changeset viewer.