MCPcopy Create free account
hub / github.com/JRickey/BattleShip / UpdateWindowBackendObjects

Method UpdateWindowBackendObjects

port/gui/Menu.cpp:188–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void Menu::UpdateWindowBackendObjects() {
189 Ship::WindowBackend runningWindowBackend = Ship::Context::GetInstance()->GetWindow()->GetWindowBackend();
190 int32_t configWindowBackendId = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Backend.Id", -1);
191 if (Ship::Context::GetInstance()->GetWindow()->IsAvailableWindowBackend(configWindowBackendId)) {
192 configWindowBackend = static_cast<Ship::WindowBackend>(configWindowBackendId);
193 } else {
194 configWindowBackend = runningWindowBackend;
195 }
196
197 availableWindowBackends = Ship::Context::GetInstance()->GetWindow()->GetAvailableWindowBackends();
198 for (auto& backend : *availableWindowBackends) {
199 availableWindowBackendsMap[backend] = windowBackendsMap.at(backend);
200 }
201}
202
203bool Menu::IsMenuPopped() {
204 return popped;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected