summaryrefslogtreecommitdiff
path: root/src/main-xaw.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-xaw.c
parent1eaf454bd4f6c1f36391552cc1fc7188f9901f7e (diff)
Refactor: EGO_GRAPHICS compile-time flag always set
Diffstat (limited to 'src/main-xaw.c')
-rw-r--r--src/main-xaw.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/main-xaw.c b/src/main-xaw.c
index bc9f6d3c..1f74aaf7 100644
--- a/src/main-xaw.c
+++ b/src/main-xaw.c
@@ -447,14 +447,9 @@ static void AngbandOutputText(AngbandWidget widget, int x, int y,
* Draw some graphical characters.
*/
# ifdef USE_TRANSPARENCY
-# ifdef USE_EGO_GRAPHICS
static void AngbandOutputPict(AngbandWidget widget, 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 void AngbandOutputPict(AngbandWidget widget, 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 void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
const byte *ap, const char *cp)
@@ -473,14 +468,12 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
int x2, y2;
-# ifdef USE_EGO_GRAPHICS
byte ea;
char ec;
int x3, y3;
bool_ has_overlay;
-# endif /* USE_EGO_GRAPHICS */
int k, l;
unsigned long pixel, blank;
@@ -508,8 +501,6 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
x2 = (tc & 0x7F) * widget->angband.fontwidth;
y2 = (ta & 0x7F) * widget->angband.fontheight;
-# ifdef USE_EGO_GRAPHICS
-
ea = *eap++;
ec = *ecp++;
has_overlay = (ea && ec);
@@ -518,25 +509,10 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
x3 = (ec & 0x7F) * widget->angband.fontwidth;
y3 = (ea & 0x7F) * widget->angband.fontheight;
-# endif /* USE_EGO_GRAPHICS */
-
/* Optimise the common case */
if ((x1 == x2) && (y1 == y2))
{
-# ifndef USE_EGO_GRAPHICS
-
- /* Draw object / terrain */
- XPutImage(XtDisplay(widget), XtWindow(widget),
- widget->angband.gc[0],
- widget->angband.tiles,
- x1, y1,
- x, y,
- widget->angband.fontwidth,
- widget->angband.fontheight);
-
-# else /* !USE_EGO_GRAPHICS */
-
/* No overlay */
if (!has_overlay)
{
@@ -586,8 +562,6 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
widget->angband.fontheight);
}
-# endif /* !USE_EGO_GRAPHICS */
-
}
else
{
@@ -595,30 +569,6 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
blank = XGetPixel(widget->angband.tiles,
0, widget->angband.fontheight * 6);
-# ifndef USE_EGO_GRAPHICS
-
- for (k = 0; k < widget->angband.fontwidth; k++)
- {
- for (l = 0; l < widget->angband.fontheight; l++)
- {
- /* If mask set... */
- if ((pixel = XGetPixel(widget->angband.tiles,
- x1 + k, y1 + l)) == blank)
- {
-
- /* Output from the terrain */
- pixel = XGetPixel(widget->angband.tiles,
- x2 + k, y2 + l);
- }
-
- /* Store into the temp storage. */
- XPutPixel(widget->angband.TmpImage,
- k, l, pixel);
- }
- }
-
-#else /* !USE_EGO_GRAPHICS */
-
for (k = 0; k < widget->angband.fontwidth; k++)
{
for (l = 0; l < widget->angband.fontheight; l++)
@@ -657,8 +607,6 @@ static void AngbandOutputPict(AngbandWidget widget, int x, int y, int n,
}
}
-#endif /* !USE_EGO_GRAPHICS */
-
/* Draw to screen */
/* Draw object / terrain */
@@ -1635,13 +1583,8 @@ static errr Term_text_xaw(int x, int y, int n, byte a, cptr s)
* Draw some graphical characters.
*/
# ifdef USE_TRANSPARENCY
-# ifdef USE_EGO_GRAPHICS
static errr Term_pict_xaw(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_xaw(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_xaw(int x, int y, int n, const byte *ap, const char *cp)
# endif /* USE_TRANSPARENCY */
@@ -1650,11 +1593,7 @@ static errr Term_pict_xaw(int x, int y, int n, const byte *ap, const char *cp)
/* Draw the pictures */
# ifdef USE_TRANSPARENCY
-# ifdef USE_EGO_GRAPHICS
AngbandOutputPict(td->widget, x, y, n, ap, cp, tap, tcp, eap, ecp);
-# else /* USE_EGO_GRAPHICS */
- AngbandOutputPict(td->widget, x, y, n, ap, cp, tap, tcp);
-# endif /* USE_EGO_GRAPHICS */
# else /* USE_TRANSPARENCY */
AngbandOutputPict(td->widget, x, y, n, ap, cp);
# endif /* USE_TRANSPARENCY */