| 723 | }; |
| 724 | |
| 725 | static ScreenMode optionsScreenMode() |
| 726 | { |
| 727 | constexpr std::array<std::pair<std::string_view, ScreenMode>, 3> mode_names = { |
| 728 | {{"windowed", ScreenMode::Windowed}, |
| 729 | {"fullscreen", ScreenMode::FullScreen}, |
| 730 | {"borderless", ScreenMode::Borderless}}}; |
| 731 | |
| 732 | for (const auto &mode_name : mode_names) |
| 733 | { |
| 734 | if (Options::screenModeOption.get() == mode_name.first) |
| 735 | { |
| 736 | return mode_name.second; |
| 737 | } |
| 738 | } |
| 739 | return ScreenMode::Unknown; |
| 740 | } |
| 741 | |
| 742 | void Framework::displayInitialise() |
| 743 | { |