| 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) |
no test coverage detected