| 50 | } |
| 51 | |
| 52 | void Scene_Title::Start() { |
| 53 | Main_Data::game_system->ResetSystemGraphic(); |
| 54 | |
| 55 | // Change the resolution of the window |
| 56 | if (Player::has_custom_resolution) { |
| 57 | Player::ChangeResolution(Player::screen_width, Player::screen_height); |
| 58 | } else { |
| 59 | switch (DisplayUi->GetConfig().game_resolution.Get()) { |
| 60 | case ConfigEnum::GameResolution::Original: |
| 61 | Player::ChangeResolution(SCREEN_TARGET_WIDTH, SCREEN_TARGET_HEIGHT); |
| 62 | break; |
| 63 | case ConfigEnum::GameResolution::Widescreen: |
| 64 | Player::ChangeResolution(416, SCREEN_TARGET_HEIGHT); |
| 65 | Player::game_config.fake_resolution.Set(true); |
| 66 | break; |
| 67 | case ConfigEnum::GameResolution::Ultrawide: |
| 68 | Player::ChangeResolution(560, SCREEN_TARGET_HEIGHT); |
| 69 | Player::game_config.fake_resolution.Set(true); |
| 70 | break; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // Skip background image and music if not used |
| 75 | if (CheckEnableTitleGraphicAndMusic()) { |
| 76 | CreateTitleGraphic(); |
| 77 | PlayTitleMusic(); |
| 78 | } |
| 79 | |
| 80 | CreateCommandWindow(); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | void Scene_Title::Continue(SceneType prev_scene) { |
no test coverage detected