Console editline attribute fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/>


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux