[wineconsole01] Fix bad cursor position optimization
Richard Cohen
richard at daijobu.co.uk
Wed Mar 17 07:20:00 CST 2004
The "optimization" was discarding the last cursor movement.
In wcmd, the cursor was sometimes moving to the beginning of the line,
rather than after the prompt.
Changelog
Fix cursor position optimization
-------------- next part --------------
diff -u -r programs/wineconsole/wineconsole.c programs/wineconsole/wineconsole.c
--- programs/wineconsole/wineconsole.c 2003-12-02 08:48:48.000000000 +0000
+++ programs/wineconsole/wineconsole.c 2004-03-17 09:33:31.000000000 +0000
@@ -228,7 +228,8 @@
{
if (evts[i].event == CONSOLE_RENDERER_CURSOR_POS_EVENT)
{
- if (ev_found != -1) evts[ev_found].event = CONSOLE_RENDERER_NONE_EVENT;
+ if (ev_found != -1)
+ evts[i].event = CONSOLE_RENDERER_NONE_EVENT;
ev_found = i;
}
}
More information about the wine-patches
mailing list