summaryrefslogtreecommitdiff
path: root/src/main-win.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-03-03 20:59:35 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:57:25 +0200
commitc033064404865fd1cccad23e36ce195fca92c64d (patch)
treeb65994d89f9cb022b6b437f85763718296b791d4 /src/main-win.c
parent1eaf454bd4f6c1f36391552cc1fc7188f9901f7e (diff)
Refactor: EGO_GRAPHICS compile-time flag always set
Diffstat (limited to 'src/main-win.c')
-rw-r--r--src/main-win.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main-win.c b/src/main-win.c
index dde154b5..d0548d3b 100644
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -2213,11 +2213,7 @@ static errr Term_text_win(int x, int y, int n, byte a, const char *s)
* If "graphics" is not available, we simply "wipe" the given grids.
*/
# ifdef USE_TRANSPARENCY
-# ifdef USE_EGO_GRAPHICS
static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp, const byte *eap, const char *ecp)
-# else /* USE_EGO_GRAPHICS */
-static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp)
-# endif /* USE_EGO_GRAPHICS */
# else /* USE_TRANSPARENCY */
static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
# endif /* USE_TRANSPARENCY */
@@ -2236,12 +2232,8 @@ static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
HDC hdcMask = NULL;
-#ifdef USE_EGO_GRAPHICS
-
int x4, y4;
-#endif
-
# endif /* USE_TRANSPARENCY */
HDC hdc;
@@ -2321,7 +2313,6 @@ static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
/* Draw the tile */
BitBlt(hdc, x2, y2, tw2, h2, hdcSrc, x1, y1, SRCPAINT);
-#ifdef USE_EGO_GRAPHICS
if (ecp[i] != 0 && eap[i] != 0)
{
x4 = (ecp[i] & 0x7F) * w1;
@@ -2333,7 +2324,6 @@ static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
/* Draw the tile */
BitBlt(hdc, x2, y2, tw2, h2, hdcSrc, x4, y4, SRCPAINT);
}
-#endif
}
/* Need to stretch */
@@ -2355,7 +2345,6 @@ static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
StretchBlt(hdc, x2, y2, tw2, h2, hdcSrc, x1, y1, w1, h1, SRCPAINT);
}
-#ifdef USE_EGO_GRAPHICS
if (ecp[i] != 0 && eap[i] != 0)
{
x4 = (ecp[i] & 0x7F) * w1;
@@ -2367,7 +2356,6 @@ static errr Term_pict_win(int x, int y, int n, const byte *ap, const char *cp)
/* Draw the tile */
StretchBlt(hdc, x2, y2, tw2, h2, hdcSrc, x4, y4, w1, h1, SRCPAINT);
}
-#endif
}
}
else