OSDN Git Service

[Refactor] #37353 メッセージ整理。(window_flag_desc) / Refactor messages. (window_flag_desc)
[hengband/hengband.git] / src / main-dos.c
index 158ccbf..cf21a9a 100644 (file)
@@ -1,4 +1,4 @@
-/* File: main-dos.c */
+/* File: main-dos.c */
 
 /*
  * Copyright (c) 1997 Ben Harrison, Robert Ruehlmann, and others
@@ -300,7 +300,7 @@ static void Term_init_dos(term *t);
 static void Term_nuke_dos(term *t);
 static void term_data_link(term_data *td);
 static void dos_dump_screen(void);
-static void dos_quit_hook(cptr str);
+static void dos_quit_hook(concptr str);
 static bool init_windows(void);
 errr init_dos(void);
 #ifdef USE_SOUND
@@ -310,11 +310,7 @@ static void play_song(void);
 #endif /* USE_SOUND */
 #ifdef USE_GRAPHICS
 static bool init_graphics(void);
-# ifdef USE_TRANSPARENCY
 static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp);
-# else /* USE_TRANSPARENCY */
-static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp);
-# endif /* USE_TRANSPARENCY */
 #endif /* USE_GRAPHICS */
 
 
@@ -616,7 +612,7 @@ static void Term_xtra_dos_clear(void)
        {
                /* Draw the Term black */
                rectfill(screen,
-                       x1, y1, x1 + w1 - 1, y1 + h1 - 1,
+                       x1, y1, x1 + w1 - 1, y1 + h1 - 1,
                        COLOR_OFFSET + TERM_DARK);
        }
 }
@@ -1097,7 +1093,7 @@ static errr Term_wipe_dos(int x, int y, int n)
        {
                /* Draw a black block */
                rectfill(screen, x1, y1, x1 + w1 - 1, y1 + h1 - 1,
-                       COLOR_OFFSET + TERM_DARK);
+                       COLOR_OFFSET + TERM_DARK);
        }
 
        /* Success */
@@ -1147,7 +1143,7 @@ static errr Term_text_dos(int x, int y, int n, byte a, const char *cp)
 
                /* Dump the text */
                textout(screen, td->font, text, x1, y1,
-                       COLOR_OFFSET + (a & 0x0F));
+                       COLOR_OFFSET + (a & 0x0F));
        }
        /* Stretch needed */
        else
@@ -1163,7 +1159,7 @@ static errr Term_text_dos(int x, int y, int n, byte a, const char *cp)
 
                        /* Dump some text */
                        textout(screen, td->font, text, x1, y1,
-                               COLOR_OFFSET + (a & 0x0F));
+                               COLOR_OFFSET + (a & 0x0F));
 
                        /* Advance */
                        x1 += td->tile_wid;
@@ -1186,11 +1182,7 @@ static errr Term_text_dos(int x, int y, int n, byte a, const char *cp)
  * "ap[i]" and "cp[i]" values, but we must map the resulting value
  * onto the legal bitmap size, which is normally 32x32.  XXX XXX XXX
  */
-#ifdef USE_TRANSPARENCY
 static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp)
-#else /* USE_TRANSPARENCY */
-static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp)
-#endif /* USE_TRANSPARENCY */
 {
        term_data *td = (term_data*)(Term->data);
 
@@ -1200,13 +1192,8 @@ static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp)
 
        int x1, y1;
        int x2, y2;
-
-# ifdef USE_TRANSPARENCY
-
        int x3, y3;
 
-# endif /* USE_TRANSPARENCY */
-
        /* Size */
        w = td->tile_wid;
        h = td->tile_hgt;
@@ -1222,7 +1209,6 @@ static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp)
                x2 = (cp[i] & 0x7F) * w;
                y2 = (ap[i] & 0x7F) * h;
 
-# ifdef USE_TRANSPARENCY
                x3 = (tcp[i] & 0x7F) * w;
                y3 = (tap[i] & 0x7F) * h;
 
@@ -1232,13 +1218,6 @@ static errr Term_pict_dos(int x, int y, int n, const byte *ap, const char *cp)
                /* Blit the tile to the screen */
                masked_blit(td->tiles, screen, x2, y2, x1, y1, w, h);
 
-# else /* USE_TRANSPARENCY */
-
-               /* Blit the tile to the screen */
-               blit(td->tiles, screen, x2, y2, x1, y1, w, h);
-
-# endif /* USE_TRANSPARENCY */
-
                /* Advance (window) */
                x1 += w;
        }
@@ -1331,7 +1310,7 @@ static void term_data_link(term_data *td)
 /*
  * Shut down visual system, then fall back into standard "quit()"
  */
-static void dos_quit_hook(cptr str)
+static void dos_quit_hook(concptr str)
 {
        int i;