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:
@@ -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 */
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user