Fix compilation with TTY_TILES_ESCCODES for expanded-glyphs
This commit is contained in:
+5
-12
@@ -231,9 +231,8 @@ static const char default_menu_cmds[] = {
|
|||||||
#ifdef TTY_TILES_ESCCODES
|
#ifdef TTY_TILES_ESCCODES
|
||||||
static int vt_tile_current_window = -2;
|
static int vt_tile_current_window = -2;
|
||||||
|
|
||||||
void
|
static void
|
||||||
print_vt_code(i, c, d)
|
print_vt_code(int i, int c, int d)
|
||||||
int i, c, d;
|
|
||||||
{
|
{
|
||||||
HUPSKIP();
|
HUPSKIP();
|
||||||
if (iflags.vt_tiledata) {
|
if (iflags.vt_tiledata) {
|
||||||
@@ -259,8 +258,8 @@ int i, c, d;
|
|||||||
#define print_vt_code2(i,c) print_vt_code((i), (c), -1)
|
#define print_vt_code2(i,c) print_vt_code((i), (c), -1)
|
||||||
#define print_vt_code3(i,c,d) print_vt_code((i), (c), (d))
|
#define print_vt_code3(i,c,d) print_vt_code((i), (c), (d))
|
||||||
|
|
||||||
#ifdef TTY_SOUND_ESCCODES
|
#if defined(USER_SOUNDS) && defined(TTY_SOUND_ESCCODES)
|
||||||
void
|
static void
|
||||||
print_vt_soundcode_idx(int idx, int v)
|
print_vt_soundcode_idx(int idx, int v)
|
||||||
{
|
{
|
||||||
HUPSKIP();
|
HUPSKIP();
|
||||||
@@ -3358,9 +3357,6 @@ tty_print_glyph(winid window, xchar x, xchar y,
|
|||||||
{
|
{
|
||||||
boolean inverse_on = FALSE;
|
boolean inverse_on = FALSE;
|
||||||
int ch, color;
|
int ch, color;
|
||||||
#if defined(TTY_TILES_ESCCODES)
|
|
||||||
int glyph;
|
|
||||||
#endif
|
|
||||||
unsigned special;
|
unsigned special;
|
||||||
|
|
||||||
HUPSKIP();
|
HUPSKIP();
|
||||||
@@ -3371,9 +3367,6 @@ tty_print_glyph(winid window, xchar x, xchar y,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* get glyph ttychar, color, and special flags */
|
/* get glyph ttychar, color, and special flags */
|
||||||
#if defined(TTY_TILES_ESCCODES)
|
|
||||||
glyph = glyphinfo->glyph;
|
|
||||||
#endif
|
|
||||||
ch = glyphinfo->ttychar;
|
ch = glyphinfo->ttychar;
|
||||||
color = glyphinfo->gm.color;
|
color = glyphinfo->gm.color;
|
||||||
special = glyphinfo->gm.glyphflags;
|
special = glyphinfo->gm.glyphflags;
|
||||||
@@ -3383,7 +3376,7 @@ tty_print_glyph(winid window, xchar x, xchar y,
|
|||||||
/* Move the cursor. */
|
/* Move the cursor. */
|
||||||
tty_curs(window, x, y);
|
tty_curs(window, x, y);
|
||||||
|
|
||||||
print_vt_code3(AVTC_GLYPH_START, glyphinfo->tileidx, special);
|
print_vt_code3(AVTC_GLYPH_START, glyphinfo->gm.tileidx, special);
|
||||||
|
|
||||||
#ifndef NO_TERMS
|
#ifndef NO_TERMS
|
||||||
if (ul_hack && ch == '_') { /* non-destructive underscore */
|
if (ul_hack && ch == '_') { /* non-destructive underscore */
|
||||||
|
|||||||
Reference in New Issue
Block a user