loader: do not update palette in text mode

Apparently palette update while in text mode, will cause
some adapters to end up with blank display.
This commit is contained in:
Toomas Soome 2021-01-07 09:07:59 +02:00
parent a2fc8ade10
commit 1790f5e654

View File

@ -936,7 +936,7 @@ cons_update_mode(bool use_gfx_mode)
gfx_state.tg_fb.fb_mask_green >> goff, goff,
gfx_state.tg_fb.fb_mask_blue >> boff, boff);
if (gfx_state.tg_ctype == CT_INDEXED)
if (gfx_state.tg_ctype == CT_INDEXED && !use_gfx_mode)
vidc_load_palette();
teken_set_winsize(&gfx_state.tg_teken, &gfx_state.tg_tp);