VirtualBox

Changeset 52952 in vbox for trunk


Ignore:
Timestamp:
Oct 6, 2014 1:12:21 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Details-pane: VM preview: Possible crash bug-fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp

    r52730 r52952  
    256256                        break;
    257257
    258                     /* Create image based on shallow copy or reordered data: */
     258                    /* Create image based on shallow copy of acquired data: */
    259259                    image = QImage(screenData.data(), size.width(), size.height(), QImage::Format_RGB32);
     260                    /* And detach that copy to make it deep: */
     261                    (uchar*)image.bits();
    260262                    /* Dim image to give it required look for PAUSED state: */
    261263                    if (machineState == KMachineState_Paused)
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