VirtualBox

Ignore:
Timestamp:
Feb 14, 2023 11:11:43 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Forgot one place in r155829.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r98547 r98555  
    15941594    screenShot.fill(0);
    15951595
    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());
    16111598
    16121599    /* Take the device-pixel-ratio into account: */
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