OSDN Git Service

Hengband.INI内に保存されたタイル幅、高さが反映されない不具合を修正。 / Fix the trouble, no-applied width and...
authorDeskull <desull@users.sourceforge.jp>
Sun, 21 Dec 2014 15:58:42 +0000 (00:58 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sun, 21 Dec 2014 15:58:42 +0000 (00:58 +0900)
src/main-win.c

index 22c263f..8a8edb4 100644 (file)
@@ -3376,8 +3376,8 @@ static void init_windows(void)
                td->lf.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
                /* Activate the chosen font */
                term_force_font(td, NULL);
-               td->tile_wid = td->font_wid;
-               td->tile_hgt = td->font_hgt;
+               if(!td->tile_wid) td->tile_wid = td->font_wid;
+               if(!td->tile_hgt) td->tile_hgt = td->font_hgt;
 #else
                /* Access the standard font file */
                path_build(buf, sizeof(buf), ANGBAND_DIR_XTRA_FONT, td->font_want);