- Timestamp:
- Nov 24, 2014 2:49:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r53372 r53388 186 186 187 187 /* Take the scale-factor into account: */ 188 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 189 newSize /= dScaleFactor; 188 newSize /= gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 190 189 191 190 /* Expand current limitations: */ … … 219 218 { 220 219 /* Check if that notify-change brings actual resize-event: */ 221 const bool fActualResize = frameBuffer()->width() != iWidth ||222 frameBuffer()->height() != iHeight;220 const bool fActualResize = frameBuffer()->width() != (ulong)iWidth || 221 frameBuffer()->height() != (ulong)iHeight; 223 222 224 223 /* Adjust 'scale' mode to current machine-view size: */ … … 648 647 649 648 /* Take the scale-factor into account: */ 650 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 651 size *= dScaleFactor; 649 size *= gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 652 650 653 651 #ifdef VBOX_WITH_DEBUGGER_GUI … … 732 730 733 731 /* Take the scale-factor into account: */ 734 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 735 size *= dScaleFactor; 732 size *= gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 736 733 737 734 /* Return size: */ … … 839 836 840 837 QSize v = QSize(frameBuffer()->width(), frameBuffer()->height()); 838 839 /* Take the scale-factor into account: */ 840 v *= gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 841 841 842 /* No scroll bars needed: */ 842 843 if (m.expandedTo(v) == m) … … 1070 1071 QPainter painter(viewport()); 1071 1072 /* Take the scale-factor into account: */ 1072 const double dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 1073 if (dScaleFactor == 1) 1073 if (gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()) == 1) 1074 1074 painter.drawPixmap(rect, pausePixmap(), QRect(rect.x() + contentsX(), rect.y() + contentsY(), 1075 1075 rect.width(), rect.height()));
Note:
See TracChangeset
for help on using the changeset viewer.