VirtualBox

Changeset 54076 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 5, 2015 5:17:31 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98030
Message:

FE/Qt: Mac OS X: 6278: Support for unscaled HiDPI (Retina) video-output: Initialize frame-buffer with backing scale-factor early.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r54015 r54076  
    549549                                          (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER));
    550550
     551        /* Take backing scale-factor into account: */
     552        m_pFrameBuffer->setBackingScaleFactor(darwinBackingScaleFactor(machineWindow()));
     553
    551554        /* Take unscaled HiDPI output mode into account: */
    552555        const bool fUseUnscaledHiDPIOutput = gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid());
     
    983986     * we should take the backing-scale-factor into account.
    984987     * See also viewportToContents()... */
    985     if (gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()))
     988    if (frameBuffer()->useUnscaledHiDPIOutput())
    986989    {
    987990        const double dBackingScaleFactor = frameBuffer()->backingScaleFactor();
     
    10111014     * we should take the backing-scale-factor into account.
    10121015     * See also updateSliders()... */
    1013     if (gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()))
     1016    if (frameBuffer()->useUnscaledHiDPIOutput())
    10141017    {
    10151018        const double dBackingScaleFactor = frameBuffer()->backingScaleFactor();
     
    14631466#ifdef Q_WS_MAC
    14641467    /* Take the backing-scale-factor into account: */
    1465     if (gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()))
     1468    if (frameBuffer()->useUnscaledHiDPIOutput())
    14661469    {
    14671470        const double dBackingScaleFactor = frameBuffer()->backingScaleFactor();
     
    14791482#ifdef Q_WS_MAC
    14801483    /* Take the backing-scale-factor into account: */
    1481     if (gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()))
     1484    if (frameBuffer()->useUnscaledHiDPIOutput())
    14821485    {
    14831486        const double dBackingScaleFactor = frameBuffer()->backingScaleFactor();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r53963 r54076  
    944944#ifdef Q_WS_MAC
    945945            /* Take the backing-scale-factor into account: */
    946             if (gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()))
     946            if (pFrameBuffer->useUnscaledHiDPIOutput())
    947947            {
    948948                const double dBackingScaleFactor = pFrameBuffer->backingScaleFactor();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette