comparison stateview.c @ 719:019d27995e32

Upgrade to SDL 2.0 and drop support for the non-OpenGL render path
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 May 2015 19:05:11 -0700
parents 6e751a8f46aa
children e64975fc5f98
comparison
equal deleted inserted replaced
718:eaba6789f316 719:019d27995e32
85 } 85 }
86 width = width < 320 ? def_width : width; 86 width = width < 320 ? def_width : width;
87 height = height < 240 ? (width/320) * 240 : height; 87 height = height < 240 ? (width/320) * 240 : height;
88 88
89 vdp_context context; 89 vdp_context context;
90 render_init(width, height, "GST State Viewer", 60, 0, 0); 90 render_init(width, height, "GST State Viewer", 60, 0);
91 init_vdp_context(&context, 0); 91 init_vdp_context(&context, 0);
92 vdp_load_gst(&context, state_file); 92 vdp_load_gst(&context, state_file);
93 vdp_run_to_vblank(&context); 93 vdp_run_to_vblank(&context);
94 vdp_print_sprite_table(&context); 94 vdp_print_sprite_table(&context);
95 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); 95 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled");