follow-up to display.c, add a comment

This commit is contained in:
nhmall
2023-12-26 13:48:56 -05:00
parent 9da895f285
commit 90d1e30ebd

View File

@@ -1542,6 +1542,9 @@ static glyph_info no_ginfo = {
} }
}; };
#ifndef UNBUFFERED_GLYPHINFO #ifndef UNBUFFERED_GLYPHINFO
/* Note that the 'glyph' argument is not used in the expansion
* of this !UNBUFFERED_GLYPHINFO (default) variation, but is
* a requirement for the UNBUFFERED_GLYPHINFO variation */
#define Glyphinfo_at(x, y, glyph) \ #define Glyphinfo_at(x, y, glyph) \
(((x) < 0 || (y) < 0 || (x) >= COLNO || (y) >= ROWNO) ? &no_ginfo \ (((x) < 0 || (y) < 0 || (x) >= COLNO || (y) >= ROWNO) ? &no_ginfo \
: &gg.gbuf[(y)][(x)].glyphinfo) : &gg.gbuf[(y)][(x)].glyphinfo)