| 344 | } |
| 345 | |
| 346 | static void screenModeDropdown([[maybe_unused]] const Window& self, int16_t selection) |
| 347 | { |
| 348 | if (selection == -1) |
| 349 | { |
| 350 | return; |
| 351 | } |
| 352 | |
| 353 | auto new_mode = static_cast<Config::ScreenMode>(selection); |
| 354 | if (new_mode == Config::get().display.mode) |
| 355 | { |
| 356 | return; |
| 357 | } |
| 358 | |
| 359 | #if !(defined(__APPLE__) && defined(__MACH__)) |
| 360 | Ui::setDisplayMode(new_mode); |
| 361 | #endif |
| 362 | } |
| 363 | |
| 364 | #pragma mark - Resolution dropdown |
| 365 |
no test coverage detected