Keeping the original scaling calculation for other OSes
This commit is contained in:
parent
21ab1111ad
commit
25e66d6972
|
@ -150,7 +150,9 @@ void gui_init()
|
||||||
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f);
|
//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());
|
//ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
|
||||||
//IM_ASSERT(font != NULL);
|
//IM_ASSERT(font != NULL);
|
||||||
|
#if !(defined(_WIN32) || defined(__APPLE__))
|
||||||
|
scaling = std::max(1.f, screen_dpi / 100.f * 0.75f);
|
||||||
|
#endif
|
||||||
if (scaling > 1)
|
if (scaling > 1)
|
||||||
ImGui::GetStyle().ScaleAllSizes(scaling);
|
ImGui::GetStyle().ScaleAllSizes(scaling);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue