SDL UI, fix for CD LED display

This commit is contained in:
kub 2020-06-23 23:36:38 +02:00
parent c815b1bc59
commit 7a7265eea0
2 changed files with 6 additions and 3 deletions

View file

@ -270,7 +270,7 @@ void plat_init(void)
if (shadow_size < 320 * 480 * 2)
shadow_size = 320 * 480 * 2;
shadow_fb = malloc(shadow_size);
shadow_fb = calloc(1, shadow_size);
g_menubg_ptr = calloc(1, shadow_size);
if (shadow_fb == NULL || g_menubg_ptr == NULL) {
fprintf(stderr, "OOM\n");