| 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 | { |
no outgoing calls
no test coverage detected