VirtualBox

Changeset 107470 in vbox for trunk/src


Ignore:
Timestamp:
Jan 7, 2025 3:10:02 PM (12 days ago)
Author:
vboxsync
Message:

FE/Qt: bugref:3409: Runtime UI: Fixing few more parfait warnings in Machine-view code, related to implicit type conversion.

File:
1 edited

Legend:

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

    r107446 r107470  
    981981
    982982        /* Update current window size limitations: */
    983         setMaximumGuestSize(QSize(uWidth, uHeight));
     983        setMaximumGuestSize(QSize((int)uWidth, (int)uHeight));
    984984
    985985        /* Record the hint to extra data, needed for guests using VMSVGA:
     
    991991                || (ulong)frameBuffer()->height() != uHeight
    992992                || uimachine()->isScreenVisible(screenId()) != uimachine()->isScreenVisibleHostDesires(screenId())))
    993             setStoredGuestScreenSizeHint(QSize(uWidth, uHeight));
     993            setStoredGuestScreenSizeHint(QSize((int)uWidth, (int)uHeight));
    994994
    995995        /* Send enabling size-hint to the guest: */
     
    10461046                                  false /* change origin? */,
    10471047                                  0 /* origin x */, 0 /* origin y */,
    1048                                   size.width(), size.height(),
     1048                                  (ulong)size.width(), (ulong)size.height(),
    10491049                                  0 /* bits per pixel */,
    10501050                                  true /* notify? */);
     
    17001700
    17011701    /* Create a screen-shot on the basis of the screen-data we have in saved-state: */
    1702     QImage screenShot = QImage::fromData(screenData.data(), screenData.size(), "PNG").scaled(effectiveSize);
     1702    /// @todo rework it to make sure image size isn't limited with int type size.
     1703    QImage screenShot = QImage::fromData(screenData.data(), (int)screenData.size(), "PNG").scaled(effectiveSize);
    17031704
    17041705    /* Dim screen-shot if it is Ok: */
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