Changeset 27338 in vbox
- Timestamp:
- Mar 12, 2010 5:41:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r27335 r27338 1122 1122 /* For secondary monitors we support 32 bit formats only for now. */ 1123 1123 if ( m_pFrameBuffer 1124 && m_pFrameBuffer->address() 1124 1125 && m_pFrameBuffer->pixelFormat() == FramebufferPixelFormat_FOURCC_RGB 1125 1126 && m_pFrameBuffer->bitsPerPixel() == 32) 1126 1127 { 1127 BYTE *pMem;1128 m_pFrameBuffer->GetAddress(&pMem);1129 1128 /* 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(); 1131 1130 dimImage(shot); 1132 1131 m_pauseShot = QPixmap::fromImage(shot);
Note:
See TracChangeset
for help on using the changeset viewer.