- Timestamp:
- Jan 6, 2025 7:13:15 PM (13 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r107421 r107446 446 446 void UIMachineView::updateViewport() 447 447 { 448 uimachine()->viewportChanged(screenId(), contentsX(), contentsY(), visibleWidth(), visibleHeight()); 448 uimachine()->viewportChanged(screenId(), 449 (ulong)contentsX(), (ulong)contentsY(), 450 (ulong)visibleWidth(), (ulong)visibleHeight()); 449 451 } 450 452 … … 881 883 false /* change origin? */, 882 884 0 /* origin x */, 0 /* origin y */, 883 size.width(),size.height(),885 (ulong)size.width(), (ulong)size.height(), 884 886 0 /* bits per pixel */, 885 887 true /* notify? */); … … 897 899 false /* change origin? */, 898 900 0 /* origin x */, 0 /* origin y */, 899 size.width(),size.height(),901 (ulong)size.width(), (ulong)size.height(), 900 902 0 /* bits per pixel */, 901 903 true /* notify? */); … … 943 945 false /* change origin? */, 944 946 0 /* origin x */, 0 /* origin y */, 945 size.width(),size.height(),947 (ulong)size.width(), (ulong)size.height(), 946 948 0 /* bits per pixel */, 947 949 true /* notify? */); … … 1650 1652 1651 1653 /* Acquire screen-shot image: */ 1652 uimachine()->acquireScreenShot(screenId(), screenShot.width(), screenShot.height(), KBitmapFormat_BGR0, screenShot.bits()); 1654 uimachine()->acquireScreenShot(screenId(), 1655 (ulong)screenShot.width(), (ulong)screenShot.height(), 1656 KBitmapFormat_BGR0, screenShot.bits()); 1653 1657 1654 1658 /* Take the device-pixel-ratio into account: */ … … 2171 2175 const double dDevicePixelRatioActual = frameBuffer()->devicePixelRatioActual(); 2172 2176 if (!frameBuffer()->useUnscaledHiDPIOutput()) 2173 size = QSize( size.width() * dDevicePixelRatioActual, size.height() * dDevicePixelRatioActual);2174 size = QSize( size.width() / dDevicePixelRatioFormal, size.height() / dDevicePixelRatioFormal);2177 size = QSize((int)(size.width() * dDevicePixelRatioActual), (int)(size.height() * dDevicePixelRatioActual)); 2178 size = QSize((int)(size.width() / dDevicePixelRatioFormal), (int)(size.height() / dDevicePixelRatioFormal)); 2175 2179 2176 2180 /* Return result: */ … … 2183 2187 const double dDevicePixelRatioFormal = frameBuffer()->devicePixelRatio(); 2184 2188 const double dDevicePixelRatioActual = frameBuffer()->devicePixelRatioActual(); 2185 size = QSize( size.width() * dDevicePixelRatioFormal, size.height() * dDevicePixelRatioFormal);2189 size = QSize((int)(size.width() * dDevicePixelRatioFormal), (int)(size.height() * dDevicePixelRatioFormal)); 2186 2190 if (!frameBuffer()->useUnscaledHiDPIOutput()) 2187 2191 size = QSize(size.width() / dDevicePixelRatioActual, size.height() / dDevicePixelRatioActual); … … 2206 2210 { 2207 2211 /* Scale the pixmap up: */ 2208 pixmap = pixmap.scaled( pixmap.width() * dScaleFactor, pixmap.height() * dScaleFactor,2212 pixmap = pixmap.scaled((int)(pixmap.width() * dScaleFactor), (int)(pixmap.height() * dScaleFactor), 2209 2213 Qt::IgnoreAspectRatio, Qt::SmoothTransformation); 2210 2214 iXHot *= dScaleFactor;
Note:
See TracChangeset
for help on using the changeset viewer.