| 443 | } |
| 444 | |
| 445 | void windowPositionChanged([[maybe_unused]] int32_t x, [[maybe_unused]] int32_t y) |
| 446 | { |
| 447 | const auto displayId = SDL_GetDisplayForWindow(_window); |
| 448 | const auto displayIndex = getDisplayIndex(displayId); |
| 449 | |
| 450 | auto& cfg = Config::get().display; |
| 451 | if (cfg.index != displayIndex) |
| 452 | { |
| 453 | cfg.index = displayIndex; |
| 454 | Config::write(); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | void windowSizeChanged(int32_t width, int32_t height) |
| 459 | { |
no test coverage detected