OSDN Git Service

Add new option -- show_ammo_detail / show_ammo_no_crit
[hengband/hengband.git] / src / main-dos.c
index d358e03..137d95d 100644 (file)
@@ -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 */
 
 
@@ -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;
        }