VirtualBox

Changeset 10414 in vbox for trunk/src


Ignore:
Timestamp:
Jul 9, 2008 1:04:47 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: improved heuristics for automatic maximum guest resolution, second go

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

Legend:

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

    r10395 r10414  
    11081108                emit resizeHintDone();
    11091109
     1110                /* We also recalculate the desktop geometry if this is determined
     1111                 * automatically.  In fact, we only need this on the first resize,
     1112                 * but it is done every time to keep the code simpler. */
     1113                calculateDesktopGeometry();
     1114
    11101115                return true;
    11111116            }
     
    35703575            LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height()));
    35713576
    3572             /* Increase the maximum allowed size to the new size if needed.
    3573              * We also recalculate the desktop geometry if this is determined
    3574              * automatically.  In fact, we only need this on the first resize,
    3575              * but it is done every time to keep the code simpler. */
     3577            /* Increase the maximum allowed size to the new size if needed. */
    35763578            setDesktopGeoHint (sz.width(), sz.height());
    3577             calculateDesktopGeometry();
    35783579
    35793580            mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r10395 r10414  
    11491149                emit resizeHintDone();
    11501150
     1151                /* We also recalculate the desktop geometry if this is determined
     1152                 * automatically.  In fact, we only need this on the first resize,
     1153                 * but it is done every time to keep the code simpler. */
     1154                calculateDesktopGeometry();
     1155
    11511156                return true;
    11521157            }
     
    35933598            LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height()));
    35943599
    3595             /* Increase the maximum allowed size to the new size if needed.
    3596              * We also recalculate the desktop geometry if this is determined
    3597              * automatically.  In fact, we only need this on the first resize,
    3598              * but it is done every time to keep the code simpler. */
     3600            /* Increase the maximum allowed size to the new size if needed. */
    35993601            setDesktopGeoHint (sz.width(), sz.height());
    3600             calculateDesktopGeometry();
    36013602
    36023603            mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
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