wineconsole: Apply the new background colour to the visible screen buffer.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7b3c7af813
commit
1948104cc9
|
@ -441,7 +441,12 @@ void WINECON_SetConfig(struct inner_data* data, const struct config_data* cf
|
||||||
}
|
}
|
||||||
if (data->curcfg.def_attr != cfg->def_attr)
|
if (data->curcfg.def_attr != cfg->def_attr)
|
||||||
{
|
{
|
||||||
|
DWORD screen_size, written;
|
||||||
|
COORD top_left = {0,0};
|
||||||
|
|
||||||
data->curcfg.def_attr = cfg->def_attr;
|
data->curcfg.def_attr = cfg->def_attr;
|
||||||
|
screen_size = cfg->win_width * (cfg->win_height + 1);
|
||||||
|
FillConsoleOutputAttribute(data->hConOut, cfg->def_attr, screen_size, top_left, &written);
|
||||||
SetConsoleTextAttribute(data->hConOut, cfg->def_attr);
|
SetConsoleTextAttribute(data->hConOut, cfg->def_attr);
|
||||||
}
|
}
|
||||||
/* now let's look at the window / sb size changes...
|
/* now let's look at the window / sb size changes...
|
||||||
|
|
Loading…
Reference in New Issue