File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,17 @@ typedef struct gfx_tilemap {
129129 uint8_t tile_width ; /* individual tile width */
130130 uint8_t draw_height ; /* number of rows to draw in the tilemap */
131131 uint8_t draw_width ; /* number of cols to draw tilemap */
132- uint8_t type_width ; /* 2^type_width = tile_width */
133- uint8_t type_height ; /* 2^type_height = tile_height */
132+ uint8_t type_width ; /* 2^type_width = tile_width (see enum gfx_tilemap_type) */
133+ uint8_t type_height ; /* 2^type_height = tile_height (see enum gfx_tilemap_type) */
134134 uint8_t height ; /* total number of rows in the tilemap */
135135 uint8_t width ; /* total number of cols in the tilemap */
136136 uint8_t y_loc ; /* y pixel location to begin drawing at */
137137 uint24_t x_loc ; /* x pixel location to begin drawing at */
138138} gfx_tilemap_t ;
139139
140140typedef enum gfx_tilemap_type {
141- gfx_tile_2_pixel = 1 , /* Set when using 2 pixel tiles */
141+ gfx_tile_no_pow2 = 0 , /* Set when using non powers of 2 */
142+ gfx_tile_2_pixel , /* Set when using 2 pixel tiles */
142143 gfx_tile_4_pixel , /* Set when using 4 pixel tiles */
143144 gfx_tile_8_pixel , /* Set when using 8 pixel tiles */
144145 gfx_tile_16_pixel , /* Set when using 16 pixel tiles */
You can’t perform that action at this time.
0 commit comments