Changeset 53823 in vbox
- Timestamp:
- Jan 15, 2015 2:38:23 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97632
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r53803 r53823 46 46 47 47 # include <VBox/VBoxGL2D.h> 48 49 #ifdef Q_WS_MAC 50 # include "VBoxUtils-darwin.h" 51 #endif /* Q_WS_MAC */ 48 52 49 53 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 4430 4434 } 4431 4435 4436 #ifdef Q_WS_MAC 4437 /* Take the backing-scale-factor into account: */ 4438 if (mSizeInfo.useUnscaledHiDPIOutput()) 4439 { 4440 const double dBackingScaleFactor = darwinBackingScaleFactor(mpViewport->window()); 4441 if (dBackingScaleFactor > 1.0) 4442 { 4443 rect.moveTo(rect.topLeft() / dBackingScaleFactor - QPoint(1, 1)); 4444 rect.setSize(rect.size() / dBackingScaleFactor + QSize(2, 2)); 4445 } 4446 } 4447 #endif /* Q_WS_MAC */ 4448 4432 4449 /* we do not to miss notify updates, because we have to update bg textures for it, 4433 4450 * so no not check for m_fUnused here, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r53803 r53823 1346 1346 mPixelFormat(pFb->pixelFormat()), mVRAM(pFb->address()), mBitsPerPixel(pFb->bitsPerPixel()), 1347 1347 mBytesPerLine(pFb->bytesPerLine()), mWidth(pFb->width()), mHeight(pFb->height()), 1348 m_dScaleFactor(pFb->scaleFactor()), m_scaledSize(pFb->scaledSize()), 1348 m_dScaleFactor(pFb->scaleFactor()), m_scaledSize(pFb->scaledSize()), m_fUseUnscaledHiDPIOutput(pFb->useUnscaledHiDPIOutput()), 1349 1349 mUsesGuestVram(true) {} 1350 1350 … … 1355 1355 mPixelFormat(aPixelFormat), mVRAM(aVRAM), mBitsPerPixel(aBitsPerPixel), 1356 1356 mBytesPerLine(aBytesPerLine), mWidth(aWidth), mHeight(aHeight), 1357 m_dScaleFactor(1.0), m_scaledSize(QSize()), m_fUseUnscaledHiDPIOutput(false), 1357 1358 mUsesGuestVram(bUsesGuestVram) {} 1358 1359 … … 1365 1366 double scaleFactor() const { return m_dScaleFactor; } 1366 1367 QSize scaledSize() const { return m_scaledSize; } 1368 bool useUnscaledHiDPIOutput() const { return m_fUseUnscaledHiDPIOutput; } 1367 1369 bool usesGuestVram() const {return mUsesGuestVram;} 1368 1370 … … 1377 1379 double m_dScaleFactor; 1378 1380 QSize m_scaledSize; 1381 bool m_fUseUnscaledHiDPIOutput; 1379 1382 bool mUsesGuestVram; 1380 1383 };
Note:
See TracChangeset
for help on using the changeset viewer.