[wineconsole] Better compression by ignoring some events (2/4)
Peter Berg Larsen
pebl at math.ku.dk
Sat Nov 29 00:59:00 CST 2003
Changelog:
- better compression for UPDATE_EVENTs as they are not influenced by
CURSOR_POS or CURSOR_GEOM.
-------------- next part --------------
diff -ur wine-20031016/programs/wineconsole/wineconsole.c wine-my/programs/wineconsole/wineconsole.c
--- wine-20031016/programs/wineconsole/wineconsole.c 2003-10-15 23:01:05.000000000 +0200
+++ wine-my/programs/wineconsole/wineconsole.c 2003-10-22 15:41:03.000000000 +0200
@@ -236,12 +236,14 @@
ev_found = -1;
for (i = 0; i < num; i++)
{
- if (evts[i].event == CONSOLE_RENDERER_NONE_EVENT) continue;
+ if (evts[i].event == CONSOLE_RENDERER_NONE_EVENT ||
+ evts[i].event == CONSOLE_RENDERER_CURSOR_POS_EVENT ||
+ evts[i].event == CONSOLE_RENDERER_CURSOR_GEOM_EVENT) continue;
if (evts[i].event != CONSOLE_RENDERER_UPDATE_EVENT)
{
ev_found = -1;
continue;
- }
+ }
if (ev_found != -1 &&
!(evts[i ].u.update.bottom + 1 < evts[ev_found].u.update.top ||
More information about the wine-patches
mailing list