OSDN Git Service

Changed where init_graphics_modes() is called to align with Angband 4.2.
authorEric Branlund <ebranlund@fastmail.com>
Fri, 24 Jan 2020 18:18:22 +0000 (10:18 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Fri, 24 Jan 2020 18:18:22 +0000 (10:18 -0800)
src/main-cocoa.m

index de0d1d4..17a55ba 100644 (file)
@@ -1368,6 +1368,9 @@ static size_t Term_mbcs_cocoa(wchar_t *dest, const char *src, int n)
     /* Load preferences */
     load_prefs();
     
+    /* Load possible graphics modes */
+    init_graphics_modes();
+
     /* Prepare the windows */
     init_windows();
     
@@ -1380,9 +1383,6 @@ static size_t Term_mbcs_cocoa(wchar_t *dest, const char *src, int n)
     /* Initialise game */
     init_angband();
 
-    /* This is not incorporated into Hengband's init_angband() yet. */
-    init_graphics_modes();
-
     /* Initialize some save file stuff */
     player_egid = getegid();