Changeset 93367 in vbox for trunk/src/VBox
- Timestamp:
- Jan 20, 2022 5:18:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r93366 r93367 1697 1697 if (!pausePixmap().isNull()) 1698 1698 { 1699 /* We have a snapshot for the paused state: */ 1700 QRect rect = pPaintEvent->rect().intersected(viewport()->rect()); 1699 /* Create viewport painter: */ 1701 1700 QPainter painter(viewport()); 1701 /* Avoid painting more than necessary: */ 1702 painter.setClipRect(pPaintEvent->rect()); 1703 /* Can be NULL when the event arrive during COM cleanup: */ 1704 UIFrameBuffer *pFramebuffer = frameBuffer(); 1702 1705 /* Take the scale-factor into account: */ 1703 UIFrameBuffer * const pFramebuffer = frameBuffer(); /* Can be NULL when the event arrive during COM cleanup. */1704 1706 if ( pFramebuffer 1705 1707 ? pFramebuffer->scaleFactor() == 1.0 && !pFramebuffer->scaledSize().isValid() 1706 1708 : pausePixmapScaled().isNull()) 1707 painter.drawPixmap( rect.topLeft(), pausePixmap());1709 painter.drawPixmap(viewport()->rect().topLeft(), pausePixmap()); 1708 1710 else 1709 painter.drawPixmap( rect.topLeft(), pausePixmapScaled());1711 painter.drawPixmap(viewport()->rect().topLeft(), pausePixmapScaled()); 1710 1712 #ifdef VBOX_WS_MAC 1711 1713 /* Update the dock icon: */
Note:
See TracChangeset
for help on using the changeset viewer.