VirtualBox

Changeset 53959 in vbox


Ignore:
Timestamp:
Jan 26, 2015 12:02:51 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Build warnings.

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

Legend:

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

    r53954 r53959  
    700700    /* Update scaled-size according scale-factor for modes except the 'Scale' one: */
    701701    if (m_pMachineView->machineLogic()->visualStateType() != UIVisualStateType_Scale)
    702         setScaledSize(scaleFactor() == 1.0 ? QSize() : QSize(m_iWidth * scaleFactor(), m_iHeight * scaleFactor()));
     702        setScaledSize(scaleFactor() == 1.0 ? QSize() : QSize((int)(m_iWidth * scaleFactor()), (int)(m_iHeight * scaleFactor())));
    703703}
    704704
     
    778778
    779779    /* Update scaled-size according scale-factor: */
    780     setScaledSize(scaleFactor() == 1.0 ? QSize() : QSize(m_iWidth * scaleFactor(), m_iHeight * scaleFactor()));
     780    setScaledSize(scaleFactor() == 1.0 ? QSize() : QSize((int)(m_iWidth * scaleFactor()), (int)(m_iHeight * scaleFactor())));
    781781
    782782    /* Update coordinate-system: */
     
    971971        {
    972972            /* Adjust sub-pixmap: */
    973             subPixmap = QPixmap(rect.width() * dBackingScaleFactor,
    974                                 rect.height() * dBackingScaleFactor);
     973            subPixmap = QPixmap((int)(rect.width() * dBackingScaleFactor),
     974                                (int)(rect.height() * dBackingScaleFactor));
    975975        }
    976976
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r53931 r53959  
    937937                    const double xScaleFactor = (double)scaledSize.width()  / pFrameBuffer->width();
    938938                    const double yScaleFactor = (double)scaledSize.height() / pFrameBuffer->height();
    939                     cpnt.setX(cpnt.x() / xScaleFactor);
    940                     cpnt.setY(cpnt.y() / yScaleFactor);
     939                    cpnt.setX((int)(cpnt.x() / xScaleFactor));
     940                    cpnt.setY((int)(cpnt.y() / yScaleFactor));
    941941                }
    942942            }
     
    949949                if (dBackingScaleFactor > 1.0)
    950950                {
    951                     cpnt.setX(cpnt.x() * dBackingScaleFactor);
    952                     cpnt.setY(cpnt.y() * dBackingScaleFactor);
     951                    cpnt.setX((int)(cpnt.x() * dBackingScaleFactor));
     952                    cpnt.setY((int)(cpnt.y() * dBackingScaleFactor));
    953953                }
    954954            }
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