Skip to content
Snippets Groups Projects
Commit 0544e9c5 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Handle all possible failure paths before calling bitmap_drv_init()

Should fix auto-curses mode crash.
parent 8c1047b1
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4208 passed
......@@ -551,12 +551,12 @@ static int video_init()
if(load_vmode(&vstat, C80))
return(-1);
x_cvstat = vstat;
if(init_window())
return(-1);
bitmap_drv_init(x11_drawrect, x11_flush);
pthread_mutex_lock(&vstatlock);
bitmap_drv_init_mode(vstat.mode, NULL, NULL, 0, 0);
pthread_mutex_unlock(&vstatlock);
if(init_window())
return(-1);
init_mode_internal(x_cvstat.mode);
return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment