Console editline attribute fix
Jukka Heinonen
jhei at iki.fi
Sun Feb 9 07:22:50 CST 2003
When line is read from console in line mode, new typed
characters were inserted using WriteConsoleOutputCharacterW
which does not update attributes. This means that characters
were not displayed using the current attributes but instead
those attributes that were on the console screen.
Changelog:
When updating the edited line, remember to update attributes, too.
Index: dlls/kernel/editline.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/editline.c,v
retrieving revision 1.3
diff -u -r1.3 editline.c
--- dlls/kernel/editline.c 9 Jan 2003 06:01:32 -0000 1.3
+++ dlls/kernel/editline.c 9 Feb 2003 12:48:10 -0000
@@ -143,6 +143,8 @@
{
WriteConsoleOutputCharacterW(ctx->hConOut, &ctx->line[beg], len,
WCEL_GetCoord(ctx, beg), NULL);
+ FillConsoleOutputAttribute(ctx->hConOut, ctx->csbi.wAttributes, len,
+ WCEL_GetCoord(ctx, beg), NULL);
}
/* ====================================================================
--
Jukka Heinonen <http://www.iki.fi/jhei/>
More information about the wine-patches
mailing list