Changeset 54114 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 9, 2015 2:58:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r54104 r54114 176 176 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 177 177 frameBuffer()->setScaleFactor(dScaleFactor); 178 display().NotifyScaleFactorChange(m_uScreenId, 179 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 180 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 178 /* Propagate scale-factor to 3D service if necessary: */ 179 if (machine().GetAccelerate3DEnabled() && vboxGlobal().is3DAvailable()) 180 { 181 display().NotifyScaleFactorChange(m_uScreenId, 182 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 183 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 184 } 181 185 182 186 /* Take unscaled HiDPI output mode into account: */ … … 363 367 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 364 368 frameBuffer()->setScaleFactor(dScaleFactor); 365 display().NotifyScaleFactorChange(m_uScreenId, 366 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 367 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 369 /* Propagate scale-factor to 3D service if necessary: */ 370 if (machine().GetAccelerate3DEnabled() && vboxGlobal().is3DAvailable()) 371 { 372 display().NotifyScaleFactorChange(m_uScreenId, 373 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 374 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 375 } 368 376 369 377 /* Handle scale attributes change: */ … … 548 556 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 549 557 m_pFrameBuffer->setScaleFactor(dScaleFactor); 550 display().NotifyScaleFactorChange(m_uScreenId, 551 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 552 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 558 /* Propagate scale-factor to 3D service if necessary: */ 559 if (machine().GetAccelerate3DEnabled() && vboxGlobal().is3DAvailable()) 560 { 561 display().NotifyScaleFactorChange(m_uScreenId, 562 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER), 563 (uint32_t)(dScaleFactor * VBOX_OGL_SCALE_FACTOR_MULTIPLIER)); 564 } 553 565 554 566 #ifdef Q_WS_MAC
Note:
See TracChangeset
for help on using the changeset viewer.