MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / setDPI

Function setDPI

src/openboardview/GUI/DPI.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void setDPI(int new_dpi) {
24 static float defaultScrollbarSize = ImGui::GetStyle().ScrollbarSize;
25 dpi = new_dpi;
26 ImGuiStyle &style = ImGui::GetStyle();
27 style.ScrollbarSize = (defaultScrollbarSize * dpi) / 100.0f;
28}
29
30void setDisplayScale(float v) {
31 display_scale = v;

Callers 3

mainFunction · 0.85
ConfigParseMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected