Changeset 55854 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 13, 2015 2:40:26 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp
r52958 r55854 76 76 QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray (0, KBitmapFormat_BGR0, width, height); 77 77 mThumbnail = thumbData.size() != 0 ? QPixmap::fromImage (QImage (thumbData.data(), width, height, QImage::Format_RGB32).copy()) : QPixmap(); 78 QVector <BYTE> screenData = machine.ReadSavedScreenshot PNGToArray (0, width, height);78 QVector <BYTE> screenData = machine.ReadSavedScreenshotToArray (0, KBitmapFormat_PNG, width, height); 79 79 mScreenshot = screenData.size() != 0 ? QPixmap::fromImage (QImage::fromData (screenData.data(), screenData.size(), "PNG")) : QPixmap(); 80 80 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r55845 r55854 647 647 /* If there is a preview image saved, 648 648 * we will resize the framebuffer to the size of that image: */ 649 ULONG u Buffer = 0, uWidth = 0, uHeight = 0;650 machine().QuerySavedScreenshotPNGSize(0, uBuffer, uWidth, uHeight);651 if ( uBuffer> 0)649 ULONG uWidth = 0, uHeight = 0; 650 QVector<KBitmapFormat> formats = machine().QuerySavedScreenshotInfo(0, uWidth, uHeight); 651 if (formats.size() > 0) 652 652 { 653 653 /* Init with the screenshot size: */ … … 1030 1030 /* Acquire the screen-data from the saved-state: */ 1031 1031 ULONG uWidth = 0, uHeight = 0; 1032 const QVector<BYTE> screenData = machine().ReadSavedScreenshot PNGToArray(0, uWidth, uHeight);1032 const QVector<BYTE> screenData = machine().ReadSavedScreenshotToArray(0, KBitmapFormat_PNG, uWidth, uHeight); 1033 1033 1034 1034 /* Make sure there is saved-state screen-data: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r55819 r55854 207 207 /* Use the screenshot from saved-state if possible: */ 208 208 ULONG uGuestWidth = 0, uGuestHeight = 0; 209 QVector<BYTE> screenData = m_machine.ReadSavedScreenshot PNGToArray(0, uGuestWidth, uGuestHeight);209 QVector<BYTE> screenData = m_machine.ReadSavedScreenshotToArray(0, KBitmapFormat_PNG, uGuestWidth, uGuestHeight); 210 210 211 211 /* Make sure screen-data is OK: */
Note:
See TracChangeset
for help on using the changeset viewer.