Hugh McMaster : wineconsole: Apply the new background colour to the visible screen buffer.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 26 10:32:52 CST 2016


Module: wine
Branch: master
Commit: 1948104cc93b545a1b2432283617ce72f21963c7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1948104cc93b545a1b2432283617ce72f21963c7

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Mon Jan 25 21:01:00 2016 +1100

wineconsole: Apply the new background colour to the visible screen buffer.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/wineconsole/wineconsole.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index 729416f..f9027a4 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -441,7 +441,12 @@ void     WINECON_SetConfig(struct inner_data* data, const struct config_data* cf
     }
     if (data->curcfg.def_attr != cfg->def_attr)
     {
+        DWORD screen_size, written;
+        COORD top_left = {0,0};
+
         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);
     }
     /* now let's look at the window / sb size changes...




More information about the wine-cvs mailing list