console

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

 



fixes a couple of oddities in the new console code

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
Name: wincon
ChangeLog: writting new chars must be done with default attribute (not cell current attribute)
	fixed buffer length in history manipulation
GenDate: 2001/12/21 20:31:19 UTC
ModifiedFiles: win32/console.c win32/editline.c
AddedFiles: 
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/win32/console.c,v
retrieving revision 1.83
diff -u -u -r1.83 console.c
--- win32/console.c	2001/11/30 18:46:55	1.83
+++ win32/console.c	2001/12/13 19:35:49
@@ -1379,9 +1379,9 @@
     {
         req->handle = 0;
         req->index = idx;
-        if (buf && buf_len > sizeof(WCHAR))
+        if (buf && buf_len > 1)
         {
-            wine_server_set_reply( req, buf, buf_len - sizeof(WCHAR) );
+            wine_server_set_reply( req, buf, (buf_len - 1) * sizeof(WCHAR) );
         }
         if (!wine_server_call_err( req ))
         {
Index: win32/editline.c
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/win32/editline.c,v
retrieving revision 1.1
diff -u -u -r1.1 editline.c
--- win32/editline.c	2001/11/23 23:05:11	1.1
+++ win32/editline.c	2001/12/13 19:38:16
@@ -175,8 +175,8 @@
     memcpy(&ctx->line[ctx->ofs], str, len * sizeof(WCHAR));
     ctx->len += len;
     ctx->line[ctx->len] = 0;
-    WriteConsoleOutputCharacterW(ctx->hConOut, &ctx->line[ctx->ofs], ctx->len - ctx->ofs, 
-				 WCEL_GetCoord(ctx, ctx->ofs), NULL);
+    SetConsoleCursorPosition(ctx->hConOut, WCEL_GetCoord(ctx, ctx->ofs));
+    WriteConsoleW(ctx->hConOut, &ctx->line[ctx->ofs], ctx->len - ctx->ofs, NULL, NULL);
     ctx->ofs += len;
 }
 

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

  Powered by Linux