Merge pull request #29 from glyptodon/rdp-profile-segfault

GUAC-1090: Clip operation by surface size when no clipping rectangle is present.
This commit is contained in:
James Muehlner 2015-02-20 17:09:21 -08:00
commit b1d6788292

View File

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