src/emu/tilemap.c
| r1605 | r1606 | |
| 264 | 264 | |
| 265 | 265 | void tilemap_init(running_machine *machine) |
| 266 | 266 | { |
| 267 | | screen_width = Machine->screen[0].width; |
| 268 | | screen_height = Machine->screen[0].height; |
| 267 | screen_width = machine->screen[0].width; |
| 268 | screen_height = machine->screen[0].height; |
| 269 | 269 | |
| 270 | | tilemap_list = NULL; |
| 271 | | tilemap_tailptr = &tilemap_list; |
| 272 | | tilemap_instance = 0; |
| 273 | | |
| 274 | | priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8); |
| 275 | | add_exit_callback(machine, tilemap_exit); |
| 270 | if (screen_width != 0 && screen_height != 0) |
| 271 | { |
| 272 | tilemap_list = NULL; |
| 273 | tilemap_tailptr = &tilemap_list; |
| 274 | tilemap_instance = 0; |
| 275 | |
| 276 | priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8); |
| 277 | add_exit_callback(machine, tilemap_exit); |
| 278 | } |
| 276 | 279 | } |
| 277 | 280 | |
| 278 | 281 | |