VirtualBox

Changeset 27338 in vbox


Ignore:
Timestamp:
Mar 12, 2010 5:41:55 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: fix fb get address for win

File:
1 edited

Legend:

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

    r27335 r27338  
    11221122                    /* For secondary monitors we support 32 bit formats only for now. */
    11231123                    if (   m_pFrameBuffer
     1124                        && m_pFrameBuffer->address()
    11241125                        && m_pFrameBuffer->pixelFormat() == FramebufferPixelFormat_FOURCC_RGB
    11251126                        && m_pFrameBuffer->bitsPerPixel() == 32)
    11261127                    {
    1127                         BYTE *pMem;
    1128                         m_pFrameBuffer->GetAddress(&pMem);
    11291128                        /* Make a *real* depth copy out of the current framebuffer content. */
    1130                         QImage shot = QImage(pMem, m_pFrameBuffer->width(), m_pFrameBuffer->height(), QImage::Format_RGB32).copy();
     1129                        QImage shot = QImage(m_pFrameBuffer->address(), m_pFrameBuffer->width(), m_pFrameBuffer->height(), QImage::Format_RGB32).copy();
    11311130                        dimImage(shot);
    11321131                        m_pauseShot = QPixmap::fromImage(shot);
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