From aa2b12b0737973d1c8b7bec0516d90ff975936cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 11 Jan 2025 02:33:16 -0500 Subject: [PATCH] Discard the drawn cache when we load a new video mode. Fixes issue where the screen would be weird during the connecting phase. --- src/conio/bitmap_con.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index 2e0beb58b2..d18c83a3c4 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -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; -- GitLab