MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / windowContentScaleUpdate

Function windowContentScaleUpdate

engine/source/editor/source/editor_ui.cpp:851–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849 }
850
851 inline void windowContentScaleUpdate(float scale)
852 {
853#if defined(__GNUC__) && defined(__MACH__)
854 float font_scale = fmaxf(1.0f, scale);
855 ImGui::GetIO().FontGlobalScale = 1.0f / font_scale;
856#endif
857 // TOOD: Reload fonts if DPI scale is larger than previous font loading DPI scale
858 }
859
860 inline void windowContentScaleCallback(GLFWwindow* window, float x_scale, float y_scale)
861 {

Callers 2

initializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected