X11 wide tilemap support

- support X11 tile files (with or without XPM) that are 40 tiles wide
- rearrange some X11 code to share more code between XPM & non-XPM options
- clean out some deprecated X11/winmap.c #ifdefs
- update Qt code minimally to handle such an XPM file
This commit is contained in:
cohrs
2002-03-17 20:02:47 +00:00
parent dce21606ab
commit b6189efe2a
6 changed files with 149 additions and 107 deletions

View File

@@ -13,6 +13,10 @@ typedef struct {
unsigned long tile_width;
unsigned long tile_height;
unsigned long ntiles;
unsigned long per_row;
} x11_header;
/* how wide each row in the tile file is, in tiles */
#define TILES_PER_ROW (40)
#endif /* TILE2X11_H */

View File

@@ -56,6 +56,8 @@ struct tile_map_info_t {
unsigned short glyphs[ROWNO][COLNO]; /* Saved glyph numbers. */
GC white_gc;
GC black_gc;
unsigned long image_width; /* dimensions of tile image */
unsigned long image_height;
};
struct map_info_t {