Mercurial > repos > blastem
diff genesis.c @ 1640:3602f3b20072
Small cleanup of vdp_context struct layout and removal of separately allocated buffers
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 16 Nov 2018 19:56:24 -0800 |
parents | d2775a242dc6 |
children | 6909c5d0bbb5 |
line wrap: on
line diff
--- a/genesis.c Thu Nov 15 22:21:09 2018 -0800 +++ b/genesis.c Fri Nov 16 19:56:24 2018 -0800 @@ -1302,8 +1302,7 @@ gen->header.info = *rom; set_region(gen, rom, force_region); - gen->vdp = malloc(sizeof(vdp_context)); - init_vdp_context(gen->vdp, gen->version_reg & 0x40); + gen->vdp = init_vdp_context(gen->version_reg & 0x40); gen->vdp->system = &gen->header; gen->frame_end = vdp_cycles_to_frame_end(gen->vdp); char * config_cycles = tern_find_path(config, "clocks\0max_cycles\0", TVAL_PTR).ptrval;