Searched defs:dAspectRatio (Results 1 - 2 of 2) sorted by relevance

/vbox/src/VBox/Frontends/VirtualBox/src/runtime/scale/
H A DUIMachineWindowScale.cpp188 double dAspectRatio = machineView()->aspectRatio(); local
189 if (dAspectRatio)
197 pRect->bottom = pRect->top + (double)(pRect->right - pRect->left) / dAspectRatio;
203 pRect->right = pRect->left + (double)(pRect->bottom - pRect->top) * dAspectRatio;
209 pRect->bottom = pRect->top + (double)(pRect->right - pRect->left) / dAspectRatio;
215 pRect->top = pRect->bottom - (double)(pRect->right - pRect->left) / dAspectRatio;
/vbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/
H A DUIGMachinePreview.cpp216 double dAspectRatio = (double)uGuestWidth / uGuestHeight; local
218 preset = bestAspectRatioPreset(dAspectRatio, m_ratios);
253 double dAspectRatio = (double)uGuestWidth / uGuestHeight; local
255 preset = bestAspectRatioPreset(dAspectRatio, m_ratios);
487 UIGMachinePreview::AspectRatioPreset UIGMachinePreview::bestAspectRatioPreset(const double dAspectRatio, argument
493 double dMinimumDiff = qAbs(dAspectRatio - ratios.value(bestPreset));
500 const double dDiff = qAbs(dAspectRatio - ratios.value(currentPreset));

Completed in 50 milliseconds