| 64 | } |
| 65 | |
| 66 | int 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 | |
| 85 | int BoardView::LoadFile(const filesystem::path &filepath) { |
| 86 | m_lastFileOpenWasInvalid = true; |
no test coverage detected