VirtualBox

Changeset 27222 in vbox


Ignore:
Timestamp:
Mar 9, 2010 4:36:12 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: Make a depth copy of the pause image in the case the primary screen is not used. Force a repaint when getting into the running state.

File:
1 edited

Legend:

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

    r27220 r27222  
    10001000                        BYTE *pMem;
    10011001                        m_pFrameBuffer->GetAddress(&pMem);
    1002                         QImage shot = QImage(pMem, m_pFrameBuffer->width(), m_pFrameBuffer->height(), QImage::Format_RGB32);
     1002                        /* Make a *real* depth copy out of the current framebuffer content. */
     1003                        QImage shot = QImage(pMem, m_pFrameBuffer->width(), m_pFrameBuffer->height(), QImage::Format_RGB32).copy();
    10031004                        dimImage(shot);
    10041005                        m_pauseShot = QPixmap::fromImage(shot);
     
    10381039                    CDisplay dsp = session().GetConsole().GetDisplay();
    10391040                    dsp.InvalidateAndUpdate();
     1041                    /* There seems to be a bug in InvalidateAndUpdate. That is,
     1042                     * only the primary screen get updated. Manually force a
     1043                     * repaint on this screen. */
     1044                    if (screenId() > 0)
     1045                        viewport()->repaint();
    10401046                }
    10411047            }
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