VirtualBox

Changeset 28268 in vbox


Ignore:
Timestamp:
Apr 13, 2010 5:16:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60010
Message:

FE/Qt4: new core: use the exact bpp of every screen for the calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp

    r28215 r28268  
    206206    ULONG height = 0;
    207207    ULONG guestBpp = 0;
    208     m_pMachineLogic->uisession()->session().GetConsole().GetDisplay().GetScreenResolution(0, width, height, guestBpp);
    209208    quint64 usedBits = 0;
     209    CDisplay display = m_pMachineLogic->uisession()->session().GetConsole().GetDisplay();
    210210    for (int i = 0; i < m_cGuestScreens; ++ i)
    211211    {
     
    215215        else
    216216            screen = QApplication::desktop()->screenGeometry(pScreenLayout->value(i, 0));
     217        display.GetScreenResolution(i, width, height, guestBpp);
    217218        usedBits += screen.width() * /* display width */
    218219                    screen.height() * /* display height */
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