Keeping the original scaling calculation for other OSes

This commit is contained in:
Edward Li 2021-02-18 07:24:05 +08:00
parent 21ab1111ad
commit 25e66d6972
1 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,9 @@ void gui_init()
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f);
//ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
//IM_ASSERT(font != NULL);
#if !(defined(_WIN32) || defined(__APPLE__))
scaling = std::max(1.f, screen_dpi / 100.f * 0.75f);
#endif
if (scaling > 1)
ImGui::GetStyle().ScaleAllSizes(scaling);