OSDN Git Service

[Feature] キャラメイク画面をウィンドウの中央に表示する
authorHabu <habu1010+github@gmail.com>
Mon, 9 Jan 2023 11:06:28 +0000 (20:06 +0900)
committerHabu <habu1010+github@gmail.com>
Mon, 9 Jan 2023 11:06:28 +0000 (20:06 +0900)
src/birth/character-builder.cpp

index 4c91be3..fa0ac38 100644 (file)
@@ -90,6 +90,10 @@ static void write_birth_diary(PlayerType *player_ptr)
  */
 void player_birth(PlayerType *player_ptr)
 {
+    constexpr auto display_width = 80;
+    constexpr auto display_height = 24;
+    TermCenteredOffsetSetter tcos(display_width, display_height);
+
     w_ptr->play_time = 0;
     wipe_monsters_list(player_ptr);
     player_wipe_without_name(player_ptr);