Changeset 54632 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2015 5:23:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r54599 r54632 2364 2364 VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR CIter; 2365 2365 const VBOXVR_SCR_COMPOSITOR_ENTRY *pEntry; 2366 2366 2367 2367 CrVrScrCompositorConstIterInit(pCompositor, &CIter); 2368 2368 … … 2370 2370 #if defined(VBOX_WITH_CONFIGURABLE_HIDPI_SCALING) && !defined(IN_VMSVGA3D) 2371 2371 /* Adjust viewport according to current NSView's backing store parameters. */ 2372 crDebug("HiDPI: vboxPresentToViewCS: up-scaling is %s.", render_spu.fUnscaledHiDPI ? "OFF" : "ON");2373 2372 if (render_spu.fUnscaledHiDPI) 2374 2373 { 2375 NSRect regularBounds = [self bounds];2376 NSRect backingBounds = [self safeConvertRectToBacking:®ularBounds];2377 glViewport(0, 0, backingBounds.size.width, backingBounds.size.height);2378 2379 2374 /* Update stretch factor in order to satisfy current NSView's backing store parameters. */ 2380 2375 backingStretchFactor = [self safeGetBackingScaleFactor]; 2381 2376 } 2382 else 2383 backingStretchFactor = 1.; 2377 2378 NSRect regularBounds = [self bounds]; 2379 NSRect backingBounds = [self safeConvertRectToBacking:®ularBounds]; 2380 glViewport(0, 0, backingBounds.size.width, backingBounds.size.height); 2381 2382 crDebug("HiDPI: vboxPresentToViewCS: up-scaling is %s (backingStretchFactor=%d).", 2383 render_spu.fUnscaledHiDPI ? "OFF" : "ON", (int)backingStretchFactor); 2384 2384 #endif 2385 2385
Note:
See TracChangeset
for help on using the changeset viewer.