Changeset 98555 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 14, 2023 11:11:43 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r98547 r98555 1594 1594 screenShot.fill(0); 1595 1595 1596 /* For separate process: */ 1597 if (uiCommon().isSeparateProcess()) 1598 { 1599 /* Take screen-data to array: */ 1600 const QVector<BYTE> screenData = display().TakeScreenShotToArray(screenId(), screenShot.width(), screenShot.height(), KBitmapFormat_BGR0); 1601 /* And copy that data to screen-shot if it is Ok: */ 1602 if (display().isOk() && !screenData.isEmpty()) 1603 memcpy(screenShot.bits(), screenData.data(), screenShot.width() * screenShot.height() * 4); 1604 } 1605 /* For the same process: */ 1606 else 1607 { 1608 /* Take the screen-shot directly: */ 1609 display().TakeScreenShot(screenId(), screenShot.bits(), screenShot.width(), screenShot.height(), KBitmapFormat_BGR0); 1610 } 1596 /* Acquire screen-shot image: */ 1597 uimachine()->acquireScreenShot(screenId(), screenShot.width(), screenShot.height(), KBitmapFormat_BGR0, screenShot.bits()); 1611 1598 1612 1599 /* Take the device-pixel-ratio into account: */
Note:
See TracChangeset
for help on using the changeset viewer.