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

Discard the drawn cache when we load a new video mode.

Fixes issue where the screen would be weird during the connecting
phase.
parent 44e95b70
No related branches found
No related tags found
No related merge requests found
Pipeline #7722 passed
......@@ -2183,6 +2183,8 @@ int bitmap_drv_init_mode(int mode, int *width, int *height, int maxwidth, int ma
bitmap_attr2palette_locked(vstat.currattr, &vstat.vmem->vmem[i].fg, &vstat.vmem->vmem[i].bg);
}
}
// Clear the bitmap draw cache
FREE_AND_NULL(bitmap_drawn);
if (init_screens(width, height))
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment