GUAC-1090: Clip operation by surface size when no clipping rectangle is present.

This commit is contained in:
Michael Jumper 2015-02-20 16:44:56 -08:00
parent bc5635269d
commit 732adf9063

View File

@ -122,9 +122,11 @@ static void __guac_common_clip_rect(guac_common_surface* surface,
int orig_x = rect->x; int orig_x = rect->x;
int orig_y = rect->y; int orig_y = rect->y;
/* Skip clipping if no clipping rectangle applied */ /* Just bound within surface if no clipping rectangle applied */
if (!surface->clipped) if (!surface->clipped) {
__guac_common_bound_rect(surface, rect, sx, sy);
return; return;
}
guac_common_rect_constrain(rect, &surface->clip_rect); guac_common_rect_constrain(rect, &surface->clip_rect);