MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / screenModeToggleEnabled

Function screenModeToggleEnabled

src/OpenLoco/src/Ui/Windows/Options.cpp:318–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316
317#if !(defined(__APPLE__) && defined(__MACH__))
318 static void screenModeToggleEnabled(Window& self)
319 {
320 if (Config::get().display.mode == Config::ScreenMode::fullscreen)
321 {
322 self.disabledWidgets &= ~(1ULL << Widx::display_resolution) | (1ULL << Widx::display_resolution_btn);
323 self.disabledWidgets &= ~((1ULL << Widx::display_resolution) | (1ULL << Widx::display_resolution_btn));
324 }
325 else
326 {
327 self.disabledWidgets |= ((1ULL << Widx::display_resolution) | (1ULL << Widx::display_resolution_btn));
328 self.disabledWidgets |= (1ULL << Widx::display_resolution) | (1ULL << Widx::display_resolution_btn);
329 }
330 }
331#endif
332
333 static void screenModeMouseDown(const Window& self, [[maybe_unused]] WidgetIndex_t wi)

Callers 2

prepareDrawFunction · 0.85

Calls 1

getFunction · 0.50

Tested by

no test coverage detected