Fix: 01496: all segae.c drivers: Crashing with Access Violation

This driver is creating bitmaps in DRIVER_INIT, which is not the best practice, and in fact, it broke as machine->primary_bitmap is not initalized yet.
This commit is contained in:
Zsolt Vasvari 2008-03-14 03:11:25 +00:00
parent 2f37f76c57
commit 13f82f7331

View File

@ -716,7 +716,7 @@ static void *start_vdp(running_machine *machine, int type)
memset(chip->sprite_renderline,0x00,256+32);
chip->writemode = 0;
chip->r_bitmap = video_screen_auto_bitmap_alloc(machine->primary_screen);
chip->r_bitmap = auto_bitmap_alloc(256, 256, BITMAP_FORMAT_RGB15);
chip->sms_scanline_timer = timer_alloc(sms_scanline_timer_callback, chip);