-/* File: main-dos.c */
+/* File: main-dos.c */
/*
* Copyright (c) 1997 Ben Harrison, Robert Ruehlmann, and others
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
#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 */
* "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);
int x1, y1;
int x2, y2;
-
-# ifdef USE_TRANSPARENCY
-
int x3, y3;
-# endif /* USE_TRANSPARENCY */
-
/* Size */
w = td->tile_wid;
h = td->tile_hgt;
x2 = (cp[i] & 0x7F) * w;
y2 = (ap[i] & 0x7F) * h;
-# ifdef USE_TRANSPARENCY
x3 = (tcp[i] & 0x7F) * w;
y3 = (tap[i] & 0x7F) * h;
/* 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;
}
/*
* 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;