src/mame/machine/snes.c
| r5445 | r5446 | |
| 290 | 290 | |
| 291 | 291 | *************************************/ |
| 292 | 292 | |
| 293 | | static void snes_dynamic_res_change(running_machine *machine) |
| 293 | static TIMER_CALLBACK( snes_dynamic_res_change ) |
| 294 | 294 | { |
| 295 | 295 | rectangle visarea = *video_screen_get_visible_area(machine->primary_screen); |
| 296 | 296 | |
| r5445 | r5446 | |
| 785 | 785 | } |
| 786 | 786 | case BGMODE: /* BG mode and character size settings */ |
| 787 | 787 | 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); |
| 789 | 789 | snes_ppu.bg3_priority_bit = data & 0x08; |
| 790 | 790 | snes_ppu.layer[0].tile_size = (data >> 4) & 0x1; |
| 791 | 791 | snes_ppu.layer[1].tile_size = (data >> 5) & 0x1; |
| r5445 | r5446 | |
| 1155 | 1155 | /* FIXME: We only support line count and interlace here */ |
| 1156 | 1156 | snes_ppu.interlace = (data & 1) ? 2 : 1; |
| 1157 | 1157 | 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); |
| 1159 | 1159 | #ifdef SNES_DBG_REG_W |
| 1160 | 1160 | if( (data & 0x8) != (snes_ram[SETINI] & 0x8) ) |
| 1161 | 1161 | mame_printf_debug( "Pseudo 512 mode: %s\n", (data & 0x8) ? "on" : "off" ); |