Changeset 53238 in vbox
- Timestamp:
- Nov 5, 2014 2:01:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r52978 r53238 217 217 .scaled(imageAspectRatioSize(m_vRect.size(), QSize(uGuestWidth, uGuestHeight)), 218 218 Qt::IgnoreAspectRatio, Qt::SmoothTransformation); 219 /* And detach that copy to make it deep: */ 220 image.detach(); 219 221 /* Dim image to give it required look: */ 220 222 dimImage(image); … … 260 262 image = QImage(screenData.data(), size.width(), size.height(), QImage::Format_RGB32); 261 263 /* And detach that copy to make it deep: */ 262 (uchar*)image.bits();264 image.detach(); 263 265 /* Dim image to give it required look for PAUSED state: */ 264 266 if (machineState == KMachineState_Paused) … … 276 278 /* Shallow copy that image: */ 277 279 m_pPreviewImg = new QImage(image); 278 /* And detach that copy : */279 m_pPreviewImg-> bits();280 /* And detach that copy to make it deep: */ 281 m_pPreviewImg->detach(); 280 282 } 281 283
Note:
See TracChangeset
for help on using the changeset viewer.