Previous 15994 Revisions Next

r5446 Sunday 16th August, 2009 at 13:49:02 UTC by Angelo Salese
(Forgot one file...)
[src/mame/machine]snes.c

src/mame/machine/snes.c
r5445r5446
290290
291291*************************************/
292292
293static void snes_dynamic_res_change(running_machine *machine)
293static TIMER_CALLBACK( snes_dynamic_res_change )
294294{
295295   rectangle visarea = *video_screen_get_visible_area(machine->primary_screen);
296296
r5445r5446
785785         }
786786      case BGMODE:   /* BG mode and character size settings */
787787         snes_ppu.mode = data & 0x07;
788         snes_dynamic_res_change(space->machine);
788         timer_set(space->machine, video_screen_get_time_until_pos(space->machine->primary_screen, snes_ppu.beam.last_visible_line, 0), NULL, 0, snes_dynamic_res_change);
789789         snes_ppu.bg3_priority_bit = data & 0x08;
790790         snes_ppu.layer[0].tile_size = (data >> 4) & 0x1;
791791         snes_ppu.layer[1].tile_size = (data >> 5) & 0x1;
r5445r5446
11551155         /* FIXME: We only support line count and interlace here */
11561156         snes_ppu.interlace = (data & 1) ? 2 : 1;
11571157         snes_ppu.beam.last_visible_line = (data & 0x4) ? 240 : 225;
1158         snes_dynamic_res_change(space->machine);
1158         timer_set(space->machine, video_screen_get_time_until_pos(space->machine->primary_screen, snes_ppu.beam.last_visible_line, 0), NULL, 0, snes_dynamic_res_change);
11591159#ifdef SNES_DBG_REG_W
11601160         if( (data & 0x8) != (snes_ram[SETINI] & 0x8) )
11611161            mame_printf_debug( "Pseudo 512 mode: %s\n", (data & 0x8) ? "on" : "off" );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team