Previous 15994 Revisions Next

r1606 Friday 25th January, 2008 at 20:12:20 UTC by Dirk Best
Fixed screenless systems (patch submitted to MAMEDev)
[src/emu]tilemap.c

src/emu/tilemap.c
r1605r1606
264264
265265void tilemap_init(running_machine *machine)
266266{
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;
269269
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   }
276279}
277280
278281

Previous 15994 Revisions Next


© 1998-2018 The MESS Team