Modify the window interface for print_glyph
Changes to be committed: modified: doc/window.doc modified: include/qt_win.h modified: include/trampoli.h modified: include/winX.h modified: include/wingem.h modified: include/winprocs.h modified: include/wintty.h modified: src/display.c modified: src/windows.c modified: sys/amiga/winami.p modified: sys/amiga/winfuncs.c modified: sys/amiga/winproto.h modified: sys/wince/mswproc.c modified: sys/wince/winMS.h modified: win/Qt/qt_win.cpp modified: win/X11/winmap.c modified: win/chain/wc_chainin.c modified: win/chain/wc_chainout.c modified: win/chain/wc_trace.c modified: win/gem/wingem.c modified: win/gem/wingem1.c modified: win/gnome/gnbind.c modified: win/tty/wintty.c modified: win/win32/mswproc.c modified: win/win32/winMS.h print_glyph now takes a second parameter. Tiles on tiled ports always looked odd on places like the plane of air where the background color of the tile didn't match the general background of the surrounding area. 3.6 made that even worse and more glaringly noticeable with the introduction of darkened room tiles. The code to actually send something useful through the new parameter for window ports to take advantage if they want will follow.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 display.c $NHDT-Date: 1432946532 2015/05/30 00:42:12 $ $NHDT-Branch: master $:$NHDT-Revision: 1.56 $ */
|
||||
/* NetHack 3.6 display.c $NHDT-Date: 1433806584 2015/06/08 23:36:24 $ $NHDT-Branch: master $:$NHDT-Revision: 1.59 $ */
|
||||
/* Copyright (c) Dean Luick, with acknowledgements to Kevin Darcy */
|
||||
/* and Dave Cohrs, 1990. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1426,7 +1426,7 @@ int start, stop, y;
|
||||
|
||||
for (x = start; x <= stop; x++)
|
||||
if (gbuf[y][x].glyph != cmap_to_glyph(S_stone))
|
||||
print_glyph(WIN_MAP, x, y, gbuf[y][x].glyph);
|
||||
print_glyph(WIN_MAP, x, y, gbuf[y][x].glyph, NO_GLYPH);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1475,7 +1475,7 @@ int cursor_on_u;
|
||||
register gbuf_entry *gptr = &gbuf[y][x = gbuf_start[y]];
|
||||
for (; x <= gbuf_stop[y]; gptr++, x++)
|
||||
if (gptr->new) {
|
||||
print_glyph(WIN_MAP, x, y, gptr->glyph);
|
||||
print_glyph(WIN_MAP, x, y, gptr->glyph, NO_GLYPH);
|
||||
gptr->new = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 windows.c $NHDT-Date: 1433161992 2015/06/01 12:33:12 $ $NHDT-Branch: status_hilite $:$NHDT-Revision: 1.33 $ */
|
||||
/* NetHack 3.6 windows.c $NHDT-Date: 1433806591 2015/06/08 23:36:31 $ $NHDT-Branch: master $:$NHDT-Revision: 1.34 $ */
|
||||
/* Copyright (c) D. Cohrs, 1993. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -444,7 +444,7 @@ static void FDECL(hup_add_menu, (winid, int, const anything *, CHAR_P, CHAR_P,
|
||||
int, const char *, BOOLEAN_P));
|
||||
static void FDECL(hup_end_menu, (winid, const char *));
|
||||
static void FDECL(hup_putstr, (winid, int, const char *));
|
||||
static void FDECL(hup_print_glyph, (winid, XCHAR_P, XCHAR_P, int));
|
||||
static void FDECL(hup_print_glyph, (winid, XCHAR_P, XCHAR_P, int, int));
|
||||
static void FDECL(hup_outrip, (winid, int, time_t));
|
||||
static void FDECL(hup_curs, (winid, int, int));
|
||||
static void FDECL(hup_display_nhwindow, (winid, BOOLEAN_P));
|
||||
@@ -662,10 +662,11 @@ const char *text UNUSED;
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
hup_print_glyph(window, x, y, glyph)
|
||||
hup_print_glyph(window, x, y, glyph, bkglyph)
|
||||
winid window UNUSED;
|
||||
xchar x UNUSED, y UNUSED;
|
||||
int glyph UNUSED;
|
||||
int bkglyph UNUSED;
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user