add an mgflags parameter to mapglyph() to alter how it behaves internally
avoid a recent save-value,call,restore-value kludge by adding an mgflags parameter to mapglyph() to control its behavior Changes to be committed: modified: doc/window.doc modified: include/extern.h modified: include/hack.h modified: src/detect.c modified: src/mapglyph.c modified: src/pager.c modified: sys/amiga/winfuncs.c modified: sys/wince/mhmap.c modified: win/Qt/qt_win.cpp modified: win/Qt4/qt4map.cpp modified: win/X11/winmap.c modified: win/curses/cursdial.c modified: win/curses/cursinvt.c modified: win/curses/cursmain.c modified: win/gem/wingem.c modified: win/tty/wintty.c modified: win/win32/mhmap.c modified: win/win32/mswproc.c
This commit is contained in:
@@ -137,7 +137,7 @@ void NetHackQtMapViewport::paintEvent(QPaintEvent* event)
|
||||
|
||||
painter.setPen( Qt::green );
|
||||
/* map glyph to character and color */
|
||||
mapglyph(g, &ch, &color, &special, i, j);
|
||||
mapglyph(g, &ch, &color, &special, i, j, 0);
|
||||
ch = cp437(ch);
|
||||
#ifdef TEXTCOLOR
|
||||
painter.setPen( nhcolor_to_pen(color) );
|
||||
@@ -176,7 +176,7 @@ void NetHackQtMapViewport::paintEvent(QPaintEvent* event)
|
||||
int color;
|
||||
int ch;
|
||||
unsigned special;
|
||||
mapglyph(g, &ch, &color, &special, i, j);
|
||||
mapglyph(g, &ch, &color, &special, i, j, 0);
|
||||
qt_settings->glyphs().drawCell(painter, g, i, j);
|
||||
#ifdef TEXTCOLOR
|
||||
if (((special & MG_PET) != 0) && ::iflags.hilite_pet) {
|
||||
@@ -829,7 +829,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
|
||||
painter.setPen( Qt::green );
|
||||
/* map glyph to character and color */
|
||||
mapglyph(g, &ch, &color, &special, i, j);
|
||||
mapglyph(g, &ch, &color, &special, i, j, 0);
|
||||
#ifdef TEXTCOLOR
|
||||
painter.setPen( nhcolor_to_pen(color) );
|
||||
#endif
|
||||
@@ -859,7 +859,7 @@ void NetHackQtMapWindow::paintEvent(QPaintEvent* event)
|
||||
int color;
|
||||
int ch;
|
||||
unsigned special;
|
||||
mapglyph(g, &ch, &color, &special, i, j);
|
||||
mapglyph(g, &ch, &color, &special, i, j, 0);
|
||||
qt_settings->glyphs().drawCell(painter, g, i, j);
|
||||
#ifdef TEXTCOLOR
|
||||
if (((special & MG_PET) != 0) && ::iflags.hilite_pet) {
|
||||
|
||||
Reference in New Issue
Block a user