VirtualBox

Changeset 54599 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 3, 2015 3:02:01 PM (10 years ago)
Author:
vboxsync
Message:

Mac OSX host 3D: unscaled HiDPI output: always allocate sufficient backing storage for output both scaled and unscaled content, so we could switch between two modes in runtime per user request in VM settings. Code now enabled, but waiting for GUI to implement corresponding API calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r54582 r54599  
    220220
    221221/* Whether we control NSView automatic content zooming on Retina/HiDPI displays. */
    222 //#define VBOX_WITH_CONFIGURABLE_HIDPI_SCALING    1
     222#define VBOX_WITH_CONFIGURABLE_HIDPI_SCALING    1
    223223
    224224#ifdef IN_VMSVGA3D
    225225
    226 /* 
     226/*
    227227 * VMSVGA3D compatibility glue.
    228228 */
     
    14221422    m_pBlitter                = nil;
    14231423    m_pWinInfo                = pWinInfo;
    1424     m_fNeedViewportUpdate     = true;       
     1424    m_fNeedViewportUpdate     = true;
    14251425    m_fNeedCtxUpdate          = true;
    14261426    m_fDataVisible            = false;
    14271427    m_fCleanupNeeded          = false;
    14281428    m_fEverSized              = false;
    1429    
     1429
    14301430    self = [super initWithFrame:frame];
    14311431#if defined(VBOX_WITH_CONFIGURABLE_HIDPI_SCALING) && !defined(IN_VMSVGA3D)
    1432     crDebug("HiDPI: up-scaling is %s on NSView init.", render_spu.fUnscaledHiDPI ? "OFF" : "ON");
    1433     if (render_spu.fUnscaledHiDPI)
    1434         [self performSelector:@selector(setWantsBestResolutionOpenGLSurface:) withObject: (id)YES];
     1432    /* Always allocate HiDPI-ready backing store for NSView, so we will be able change HiDPI scaling option in runtime. */
     1433    crDebug("HiDPI: Allocate big backing store for NSView. Up-scaling is currently %s.", render_spu.fUnscaledHiDPI ? "OFF" : "ON");
     1434    [self performSelector:@selector(setWantsBestResolutionOpenGLSurface:) withObject: (id)YES];
    14351435#endif
    14361436
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