X11: Fix map display for hypothetical huge map

memsets don't work very well when xchar isn't char sized.
This commit is contained in:
Pasi Kallinen
2022-01-23 01:14:20 +02:00
parent d92d5f2268
commit 7b87f7b495
2 changed files with 22 additions and 18 deletions

View File

@@ -81,7 +81,7 @@ struct tile_map_info_t {
struct map_info_t {
Dimension viewport_width, /* Saved viewport size, so we can */
viewport_height; /* clip to cursor on a resize. */
unsigned char t_start[ROWNO], /* Starting column for new info. */
xchar t_start[ROWNO], /* Starting column for new info. */
t_stop[ROWNO]; /* Ending column for new info. */
boolean is_tile; /* true if currently using tiles */