MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / SetUserFontScale

Method SetUserFontScale

apps/Viewer/UI.cpp:1747–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1745}
1746
1747void UI::SetUserFontScale(float scale) {
1748 float& currentScale = Window::GetCurrentWindow().userFontScale;
1749 const float ratio = scale / currentScale;
1750 if (ratio != 1.f)
1751 ImGui::GetStyle().ScaleAllSizes(ratio);
1752 ImGui::GetIO().FontGlobalScale = currentScale = scale;
1753 SetupStyle();
1754 Window::RequestRedraw();
1755}
1756
1757void UI::ShowRenderingControls(Window& window) {
1758 ImGui::Text("Rendering");

Callers 1

SettingsReadLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected