Remove TEXTCOLOR build option
This commit is contained in:
@@ -1623,7 +1623,6 @@ void NetHackQtMapWindow::mousePressEvent(QMouseEvent* event)
|
||||
qApp->exit_loop();
|
||||
}
|
||||
|
||||
#ifdef TEXTCOLOR
|
||||
static
|
||||
const QPen& nhcolor_to_pen(int c)
|
||||
{
|
||||
@@ -1651,7 +1650,6 @@ const QPen& nhcolor_to_pen(int c)
|
||||
|
||||
return pen[c];
|
||||
}
|
||||
#endif
|
||||
|
||||
void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
@@ -1710,9 +1708,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
/* map glyph to character and color */
|
||||
(void)mapglyph(g, &och, &color, &special, i, j, 0);
|
||||
ch = (uchar)och;
|
||||
#ifdef TEXTCOLOR
|
||||
painter.setPen( nhcolor_to_pen(color) );
|
||||
#endif
|
||||
painter.drawText(
|
||||
i*qt_settings->glyphs().width(),
|
||||
j*qt_settings->glyphs().height(),
|
||||
@@ -1722,10 +1718,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
(const char*)&ch, 1
|
||||
);
|
||||
if (glyph_is_pet(g)
|
||||
#ifdef TEXTCOLOR
|
||||
&& ::iflags.hilite_pet
|
||||
#endif
|
||||
) {
|
||||
&& ::iflags.hilite_pet) {
|
||||
painter.drawPixmap(QPoint(i*qt_settings->glyphs().width(),
|
||||
j*qt_settings->glyphs().height()),
|
||||
pet_annotation);
|
||||
@@ -1740,10 +1733,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
unsigned short g=Glyph(i,j);
|
||||
qt_settings->glyphs().drawCell(painter, g, i, j);
|
||||
if (glyph_is_pet(g)
|
||||
#ifdef TEXTCOLOR
|
||||
&& ::iflags.hilite_pet
|
||||
#endif
|
||||
) {
|
||||
&& ::iflags.hilite_pet) {
|
||||
painter.drawPixmap(QPoint(i*qt_settings->glyphs().width(),
|
||||
j*qt_settings->glyphs().height()),
|
||||
pet_annotation);
|
||||
@@ -1754,11 +1744,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
|
||||
if (garea.contains(cursor)) {
|
||||
if (Is_rogue_level(&u.uz)) {
|
||||
#ifdef TEXTCOLOR
|
||||
painter.setPen( white );
|
||||
#else
|
||||
painter.setPen( green ); // REALLY primitive
|
||||
#endif
|
||||
} else
|
||||
{
|
||||
int hp100;
|
||||
|
||||
@@ -912,9 +912,7 @@ int glyph, bkglyph;
|
||||
if (mar_set_tile_mode(-1)) {
|
||||
mar_print_glyph(window, x, y, glyph2tile[glyph], glyph2tile[bkglyph]);
|
||||
if (
|
||||
#ifdef TEXTCOLOR
|
||||
iflags.hilite_pet &&
|
||||
#endif
|
||||
glyph_is_pet(glyph))
|
||||
mar_add_pet_sign(window, x, y);
|
||||
} else
|
||||
@@ -936,11 +934,9 @@ int glyph;
|
||||
/* map glyph to character and color */
|
||||
(void) mapglyph(glyph, &ch, &color, &special, x, y, 0);
|
||||
|
||||
#ifdef TEXTCOLOR
|
||||
/* Turn off color if rogue level. */
|
||||
if (Is_rogue_level(&u.uz))
|
||||
color = NO_COLOR;
|
||||
#endif /* TEXTCOLOR */
|
||||
|
||||
mar_print_char(window, x, y, ch, color);
|
||||
}
|
||||
|
||||
@@ -358,11 +358,7 @@ ghack_map_print_glyph(GtkObject *win, guint x, guint y, GdkImlibImage *im,
|
||||
if (x == u.ux && y == u.uy)
|
||||
ghack_map_cliparound(NULL, x, y, NULL);
|
||||
|
||||
if (glyph_is_pet(glyph)
|
||||
#ifdef TEXTCOLOR
|
||||
&& iflags.hilite_pet
|
||||
#endif
|
||||
) {
|
||||
if (glyph_is_pet(glyph) && iflags.hilite_pet) {
|
||||
gnome_canvas_item_raise_to_top(GNOME_CANVAS_ITEM(canvas_image));
|
||||
gnome_canvas_item_show(GNOME_CANVAS_ITEM(canvas_image));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user