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

Method ConfigParse

src/openboardview/BoardView.cpp:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66int BoardView::ConfigParse(void) {
67 ImGuiStyle &style = ImGui::GetStyle();
68
69 config.readFromConfig(obvconfig);
70
71 setDPI(config.dpi);
72
73 style.AntiAliasedLines = !config.slowCPU;
74 style.AntiAliasedFill = !config.slowCPU;
75
76 m_info_surface.x = DPIF(config.infoPanelWidth); // Convert to DPI-dependent value
77 backgroundImage.enabled = config.showBackgroundImage;
78
79 m_colors.readFromConfig(obvconfig);
80 keybindings.readFromConfig(obvconfig);
81
82 return 0;
83}
84
85int BoardView::LoadFile(const filesystem::path &filepath) {
86 m_lastFileOpenWasInvalid = true;

Callers 1

mainFunction · 0.80

Calls 3

setDPIFunction · 0.85
DPIFFunction · 0.85
readFromConfigMethod · 0.45

Tested by

no test coverage detected