VirtualBox

Ignore:
Timestamp:
Nov 10, 2015 2:37:31 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt/UIVMLogViewer: no need to use floating point arithmentics here

File:
1 edited

Legend:

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

    r58607 r58646  
    10321032        /* Getting available geometry to calculate default geometry: */
    10331033        const QRect desktopRect = vboxGlobal().availableGeometry(this);
    1034         int iDefaultWidth = desktopRect.width() * 0.5;
    1035         int iDefaultHeight = desktopRect.height() * 0.75;
     1034        int iDefaultWidth = desktopRect.width() / 2;
     1035        int iDefaultHeight = desktopRect.height() * 3 / 4;
    10361036
    10371037        /* Calculate default width to fit 132 characters: */
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