Skip to content

Commit 131fa93

Browse files
committed
Added missing DPI enabling in OvEditor
1 parent 8a35b6e commit 131fa93

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/OvEditor/src/OvEditor/Core/Context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ OvEditor::Core::Context::Context(const std::filesystem::path& p_projectFolder) :
131131
uiManager->LoadFont("Ruda-Bold", fontPath.string(), 15);
132132
uiManager->UseFont("Ruda-Bold");
133133
uiManager->SetFontScale(Settings::EditorSettings::FontScale / 100.0f);
134+
uiManager->EnableDPIScaling(Settings::EditorSettings::FontDpiScaling.Get());
134135

135136
uiManager->SetEditorLayoutSaveFilename(OvEditor::Utils::FileSystem::kLayoutFilePath.string());
136137
uiManager->SetEditorLayoutAutosaveFrequency(60.0f);

Sources/OvEditor/src/OvEditor/Core/ProjectHub.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ void OvEditor::Core::ProjectHub::SetupContext()
290290
m_uiManager->LoadFont("Ruda-Bold", fontPath.string(), 18);
291291
m_uiManager->UseFont("Ruda-Bold");
292292
m_uiManager->SetFontScale(Settings::EditorSettings::FontScale / 100.0f);
293+
m_uiManager->EnableDPIScaling(Settings::EditorSettings::FontDpiScaling.Get());
293294

294295
m_uiManager->EnableEditorLayoutSave(false);
295296
m_uiManager->EnableDocking(false);

0 commit comments

Comments
 (0)