[wineconsole] Better compression by ignoring some events (2/4)

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

 



Changelog:
- better compression for UPDATE_EVENTs as they are not influenced by
  CURSOR_POS or CURSOR_GEOM.
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 ||

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

  Powered by Linux