- Timestamp:
- Jan 7, 2025 3:10:02 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r107446 r107470 981 981 982 982 /* Update current window size limitations: */ 983 setMaximumGuestSize(QSize( uWidth,uHeight));983 setMaximumGuestSize(QSize((int)uWidth, (int)uHeight)); 984 984 985 985 /* Record the hint to extra data, needed for guests using VMSVGA: … … 991 991 || (ulong)frameBuffer()->height() != uHeight 992 992 || uimachine()->isScreenVisible(screenId()) != uimachine()->isScreenVisibleHostDesires(screenId()))) 993 setStoredGuestScreenSizeHint(QSize( uWidth,uHeight));993 setStoredGuestScreenSizeHint(QSize((int)uWidth, (int)uHeight)); 994 994 995 995 /* Send enabling size-hint to the guest: */ … … 1046 1046 false /* change origin? */, 1047 1047 0 /* origin x */, 0 /* origin y */, 1048 size.width(),size.height(),1048 (ulong)size.width(), (ulong)size.height(), 1049 1049 0 /* bits per pixel */, 1050 1050 true /* notify? */); … … 1700 1700 1701 1701 /* 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); 1703 1704 1704 1705 /* Dim screen-shot if it is Ok: */
Note:
See TracChangeset
for help on using the changeset viewer.