- the last event was not looked at when compressing console events
- better compression for UPDATE_EVENTs as they are not influenced by CURSOR_POS or CURSOR_GEOM - added debug traces
This commit is contained in:
parent
dce7644bdc
commit
4d6c59e153
@ -234,16 +234,18 @@ int WINECON_GrabChanges(struct inner_data* data)
|
|||||||
}
|
}
|
||||||
/* step 2: manage update events */
|
/* step 2: manage update events */
|
||||||
ev_found = -1;
|
ev_found = -1;
|
||||||
for (i = 0; i < num - 1; i++)
|
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)
|
if (evts[i].event != CONSOLE_RENDERER_UPDATE_EVENT)
|
||||||
{
|
{
|
||||||
ev_found = -1;
|
ev_found = -1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev_found != -1 &&
|
if (ev_found != -1 && /* Only 2 cases where they can NOT merge */
|
||||||
!(evts[i ].u.update.bottom + 1 < evts[ev_found].u.update.top ||
|
!(evts[i ].u.update.bottom + 1 < evts[ev_found].u.update.top ||
|
||||||
evts[ev_found].u.update.bottom + 1 < evts[i ].u.update.top))
|
evts[ev_found].u.update.bottom + 1 < evts[i ].u.update.top))
|
||||||
{
|
{
|
||||||
@ -262,8 +264,10 @@ int WINECON_GrabChanges(struct inner_data* data)
|
|||||||
switch (evts[i].event)
|
switch (evts[i].event)
|
||||||
{
|
{
|
||||||
case CONSOLE_RENDERER_NONE_EVENT:
|
case CONSOLE_RENDERER_NONE_EVENT:
|
||||||
|
WINE_TRACE(" NOP");
|
||||||
break;
|
break;
|
||||||
case CONSOLE_RENDERER_TITLE_EVENT:
|
case CONSOLE_RENDERER_TITLE_EVENT:
|
||||||
|
WINE_TRACE(" title()");
|
||||||
data->fnSetTitle(data);
|
data->fnSetTitle(data);
|
||||||
break;
|
break;
|
||||||
case CONSOLE_RENDERER_ACTIVE_SB_EVENT:
|
case CONSOLE_RENDERER_ACTIVE_SB_EVENT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user