Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 2 files). Show all
Unified · Split
| @@ -49,15 +49,9 @@ PreferencesDialog::PreferencesDialog(QWidget* parent) : · 48 unmodified lines | |||
| 49 | move(parentWidget()->geometry().topLeft()); | 49 | move(parentWidget()->geometry().topLeft()); |
| 50 | setFixedHeight(parentWidget()->size().height() - PREFERENCES_HEIGHT_PADDING); | 50 | setFixedHeight(parentWidget()->size().height() - PREFERENCES_HEIGHT_PADDING); |
| 51 | 51 | ||
| 52 | auto glCanvas = DependencyManager::get<GLCanvas>(); | ||
| 53 | |||
| 54 | // All font sizes are based on 72 DPI. | ||
| 55 | float dpiScale = 72.0f / glCanvas->logicalDpiX(); | ||
| 56 | |||
| 57 | UIUtil::scaleWidgetFontSizes(this); | 52 | UIUtil::scaleWidgetFontSizes(this); |
| 58 | } | 53 | } |
| 59 | 54 | ||
| 60 | |||
| 61 | void PreferencesDialog::accept() { | 55 | void PreferencesDialog::accept() { |
| 62 | savePreferences(); | 56 | savePreferences(); |
| 63 | close(); | 57 | close(); |