# HG changeset patch # User Michael Pavone # Date 1492385936 25200 # Node ID 32e95d6733a62cd02fe5cb42a2cdc795d7a39395 # Parent 3185438e0134e8b70545afa0d0f3921c8a4175fa Force display on in stateview if given a save state with the display off diff -r 3185438e0134 -r 32e95d6733a6 stateview.c --- a/stateview.c Sat Apr 15 21:45:19 2017 -0700 +++ b/stateview.c Sun Apr 16 16:38:56 2017 -0700 @@ -119,6 +119,10 @@ vdp_run_to_vblank(&context); vdp_print_sprite_table(&context); printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); + if (!(context.regs[REG_MODE_2] & DISPLAY_ENABLE)) { + puts("Forcing display on"); + vdp_control_port_write(&context, 0x8000 | REG_MODE_2 << 8 | context.regs[REG_MODE_2] | DISPLAY_ENABLE); + } render_wait_quit(&context); return 0; }