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:
@@ -926,7 +926,8 @@ These are not part of the interface. They may be called by your
|
||||
window port routines to perform the desired task, instead of duplicating
|
||||
the necessary code in each window port.
|
||||
|
||||
int mapglyph(int glyph, int *ochar, int *ocolor, unsigned *special, int x, int y)
|
||||
int mapglyph(int glyph, int *ochar, int *ocolor, unsigned *special,
|
||||
int x, int y, unsigned mgflags)
|
||||
-- Maps glyph at x,y to NetHack ascii character and color.
|
||||
The return value is an index into the showsyms[] array, in
|
||||
case a port wants to index into its own alternative
|
||||
|
||||
Reference in New Issue
Block a user