diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-11-16 19:56:24 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-11-16 19:56:24 -0800 |
commit | 909f6628edf5b5446586321c0a4df5045f2955c8 (patch) | |
tree | 6d304707aa635b3e257e5516e3eb04bef8e18b3b /sms.c | |
parent | 2bff2ff8721d68b27720ba9a6ee8f03fab235a98 (diff) |
Small cleanup of vdp_context struct layout and removal of separately allocated buffers
Diffstat (limited to 'sms.c')
-rw-r--r-- | sms.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -581,8 +581,7 @@ sms_context *alloc_configure_sms(system_media *media, uint32_t opts, uint8_t for sms->psg = malloc(sizeof(psg_context)); psg_init(sms->psg, sms->master_clock, 15*16); - sms->vdp = malloc(sizeof(vdp_context)); - init_vdp_context(sms->vdp, 0); + sms->vdp = init_vdp_context(0); sms->vdp->system = &sms->header; sms->header.info.save_type = SAVE_NONE; |