impr: Refactor previous commits to work with other environments too

This commit is contained in:
WerWolv
2024-12-28 21:37:45 +01:00
parent 534a2f1d28
commit 1298f2b688
7 changed files with 30 additions and 24 deletions

View File

@@ -746,6 +746,8 @@ namespace hex {
// NOTE: This needs to be done before a new frame is started, otherwise ImGui won't handle docking correctly
LayoutManager::process();
WorkspaceManager::process();
ImGui::GetIO().FontGlobalScale = 1.0F / ImHexApi::System::getBackingScaleFactor();
}
void Window::initGLFW() {