Mercurial > repos > blastem
comparison gst.c @ 1077:1a66d5165ea7
Cleanup the separation of render backend and VDP code in preparation for having extra debug windows. Make determination of H40/H32 based on number of lines in each mode.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 22 Aug 2016 09:46:18 -0700 |
parents | e34334e6c682 |
children | 22e87b739ad6 |
comparison
equal
deleted
inserted
replaced
1076:fa6fe03f218a | 1077:1a66d5165ea7 |
---|---|
222 if (fread(context->regs, 1, VDP_REGS, state_file) != VDP_REGS) { | 222 if (fread(context->regs, 1, VDP_REGS, state_file) != VDP_REGS) { |
223 fputs("Failed to read VDP registers from savestate\n", stderr); | 223 fputs("Failed to read VDP registers from savestate\n", stderr); |
224 return 0; | 224 return 0; |
225 } | 225 } |
226 context->double_res = (context->regs[REG_MODE_4] & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES); | 226 context->double_res = (context->regs[REG_MODE_4] & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES); |
227 if (!context->double_res) { | |
228 context->framebuf = context->oddbuf; | |
229 } | |
230 latch_mode(context); | 227 latch_mode(context); |
231 if (fread(tmp_buf, 1, CRAM_SIZE*2, state_file) != CRAM_SIZE*2) { | 228 if (fread(tmp_buf, 1, CRAM_SIZE*2, state_file) != CRAM_SIZE*2) { |
232 fputs("Failed to read CRAM from savestate\n", stderr); | 229 fputs("Failed to read CRAM from savestate\n", stderr); |
233 return 0; | 230 return 0; |
234 } | 231 } |