Mercurial > repos > blastem
comparison stateview.c @ 1908:c3d49c338224
Fix stateview target
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 26 Mar 2020 23:53:35 -0700 |
parents | bfacedbae5f0 |
children |
comparison
equal
deleted
inserted
replaced
1907:b021ca0bc375 | 1908:c3d49c338224 |
---|---|
111 } | 111 } |
112 width = width < 320 ? def_width : width; | 112 width = width < 320 ? def_width : width; |
113 height = height < 240 ? (width/320) * 240 : height; | 113 height = height < 240 ? (width/320) * 240 : height; |
114 | 114 |
115 render_init(width, height, "GST State Viewer", 0); | 115 render_init(width, height, "GST State Viewer", 0); |
116 vdp_context *context = init_vdp_context(0); | 116 vdp_context *context = init_vdp_context(0, 0); |
117 vdp_load_gst(context, state_file); | 117 vdp_load_gst(context, state_file); |
118 vdp_run_to_vblank(context); | 118 vdp_run_to_vblank(context); |
119 vdp_print_sprite_table(context); | 119 vdp_print_sprite_table(context); |
120 printf("Display %s\n", (context->regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); | 120 printf("Display %s\n", (context->regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); |
121 if (!(context->regs[REG_MODE_2] & DISPLAY_ENABLE)) { | 121 if (!(context->regs[REG_MODE_2] & DISPLAY_ENABLE)) { |