summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-11-16 19:56:24 -0800
committerMichael Pavone <pavone@retrodev.com>2018-11-16 19:56:24 -0800
commit909f6628edf5b5446586321c0a4df5045f2955c8 (patch)
tree6d304707aa635b3e257e5516e3eb04bef8e18b3b /sms.c
parent2bff2ff8721d68b27720ba9a6ee8f03fab235a98 (diff)
Small cleanup of vdp_context struct layout and removal of separately allocated buffers
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sms.c b/sms.c
index e413964..2751c72 100644
--- a/sms.c
+++ b/sms.c
@@ -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;