VirtualBox

Changeset 8323 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 23, 2008 10:11:19 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30085
Message:

Frontends/VirtualBox3/4, Main: only switch to seamless mode if the host resolution is less than the maximum currently supported by the additions

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

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

    r8322 r8323  
    19711971                         * screen.height() /* display height */
    19721972                         * QColor::numBitPlanes(); /* bit per pixel */
    1973         if (aOn && (availBits < usedBits))
     1973        CGuest guest = console->console().GetGuest();
     1974        ULONG maxWidth  = guest.GetMaxGuestWidth();
     1975        ULONG maxHeight = guest.GetMaxGuestHeight();
     1976        if (aOn && (   (availBits < usedBits)
     1977                    || ((maxWidth != 0) && (maxWidth < screen.width()))
     1978                    || ((maxHeight != 0) && (maxHeight < screen.height()))
     1979                   )
     1980           )
    19741981        {
    19751982            vboxProblem().cannotEnterSeamlessMode (screen.width(),
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8322 r8323  
    19941994                         * screen.height() /* display height */
    19951995                         * depth(); /* bit per pixel */
    1996         if (aOn && (availBits < usedBits))
     1996        CGuest guest = console->console().GetGuest();
     1997        ULONG maxWidth  = guest.GetMaxGuestWidth();
     1998        ULONG maxHeight = guest.GetMaxGuestHeight();
     1999        if (aOn && (   (availBits < usedBits)
     2000                    || ((maxWidth != 0) && (maxWidth < screen.width()))
     2001                    || ((maxHeight != 0) && (maxHeight < screen.height()))
     2002                   )
     2003           )
    19972004        {
    19982005            vboxProblem().cannotEnterSeamlessMode (screen.width(),
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