GUAC-666: Detect left-to-right fill pattern.

This commit is contained in:
Michael Jumper 2014-05-03 21:11:42 -07:00
parent 84fb0d8681
commit dbec5a5957

View File

@ -127,6 +127,10 @@ static int __guac_common_should_combine(guac_common_surface* surface, int x, int
if (combined_cost - update_cost <= update_cost / GUAC_SURFACE_NEGLIGIBLE_INCREASE)
return 1;
/* Combine if we anticipate further updates, as this update follows a common fill pattern */
if (x == surface->dirty_x && y == surface->dirty_y + surface->dirty_height)
return 1;
}
/* Otherwise, do not combine */