Changeset 54599 in vbox for trunk/src/VBox
- Timestamp:
- Mar 3, 2015 3:02:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r54582 r54599 220 220 221 221 /* Whether we control NSView automatic content zooming on Retina/HiDPI displays. */ 222 //#define VBOX_WITH_CONFIGURABLE_HIDPI_SCALING 1222 #define VBOX_WITH_CONFIGURABLE_HIDPI_SCALING 1 223 223 224 224 #ifdef IN_VMSVGA3D 225 225 226 /* 226 /* 227 227 * VMSVGA3D compatibility glue. 228 228 */ … … 1422 1422 m_pBlitter = nil; 1423 1423 m_pWinInfo = pWinInfo; 1424 m_fNeedViewportUpdate = true; 1424 m_fNeedViewportUpdate = true; 1425 1425 m_fNeedCtxUpdate = true; 1426 1426 m_fDataVisible = false; 1427 1427 m_fCleanupNeeded = false; 1428 1428 m_fEverSized = false; 1429 1429 1430 1430 self = [super initWithFrame:frame]; 1431 1431 #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 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]; 1435 1435 #endif 1436 1436
Note:
See TracChangeset
for help on using the changeset viewer.