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:
commit
b1d6788292
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user