OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Fri, 4 Jan 2019 02:16:54 +0000 (11:16 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Fri, 4 Jan 2019 02:16:54 +0000 (11:16 +0900)
src/scores.c
src/xtra1.c
src/xtra2.c

index 925571f..c19d492 100644 (file)
@@ -841,8 +841,8 @@ void race_legends(void)
  */
 void kingly(void)
 {
-       int wid, hgt;
-       int cx, cy;
+       TERM_LEN wid, hgt;
+       TERM_LEN cx, cy;
        bool seppuku = streq(p_ptr->died_from, "Seppuku");
 
        /* Hack -- retire in town */
index 5797b2d..cd943e2 100644 (file)
@@ -509,7 +509,7 @@ static struct {
 static void prt_status(void)
 {
        u32b bar_flags[3];
-       int wid, hgt, row_statbar, max_col_statbar;
+       TERM_LEN wid, hgt, row_statbar, max_col_statbar;
        int i, col = 0, num = 0;
        int space = 2;
 
@@ -990,7 +990,7 @@ static void prt_sp(void)
 static void prt_depth(void)
 {
        char depths[32];
-       int wid, hgt, row_depth, col_depth;
+       TERM_LEN wid, hgt, row_depth, col_depth;
        byte attr = TERM_WHITE;
 
        Term_get_size(&wid, &hgt);
@@ -1243,7 +1243,7 @@ static void prt_speed(void)
 
        byte attr = TERM_WHITE;
        char buf[32] = "";
-       int wid, hgt, row_speed, col_speed;
+       TERM_LEN wid, hgt, row_speed, col_speed;
 
        Term_get_size(&wid, &hgt);
        col_speed = wid + COL_SPEED;
@@ -1309,7 +1309,7 @@ static void prt_speed(void)
  */
 static void prt_study(void)
 {
-       int wid, hgt, row_study, col_study;
+       TERM_LEN wid, hgt, row_study, col_study;
 
        Term_get_size(&wid, &hgt);
        col_study = wid + COL_STUDY;
@@ -1332,7 +1332,7 @@ static void prt_study(void)
  */
 static void prt_imitation(void)
 {
-       int wid, hgt, row_study, col_study;
+       TERM_LEN wid, hgt, row_study, col_study;
 
        Term_get_size(&wid, &hgt);
        col_study = wid + COL_STUDY;
@@ -2013,7 +2013,7 @@ static void fix_overhead(void)
        for (j = 0; j < 8; j++)
        {
                term *old = Term;
-               int wid, hgt;
+               TERM_LEN wid, hgt;
 
                /* No window */
                if (!angband_term[j]) continue;
index 357a2c7..4fb8b7f 100644 (file)
@@ -1782,7 +1782,7 @@ void get_screen_size(TERM_LEN *wid_p, TERM_LEN *hgt_p)
  */
 void panel_bounds_center(void)
 {
-       int wid, hgt;
+       TERM_LEN wid, hgt;
 
        get_screen_size(&wid, &hgt);
 
@@ -1940,7 +1940,7 @@ void verify_panel(void)
 {
        POSITION y = p_ptr->y;
        POSITION x = p_ptr->x;
-       int wid, hgt;
+       TERM_LEN wid, hgt;
 
        int prow_min;
        int pcol_min;
@@ -4765,7 +4765,7 @@ bool tgt_pt(POSITION *x_ptr, POSITION *y_ptr)
        POSITION x, y;
        bool success = FALSE;
 
-       int wid, hgt;
+       TERM_LEN wid, hgt;
 
        get_screen_size(&wid, &hgt);