From 9746ea68a4754db88270a12e3f8b06173ead0b12 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 12 May 2014 13:44:51 -0700 Subject: [PATCH] GUAC-687: Use correct rect when checking for fully clipped updates. --- src/common/guac_surface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/guac_surface.c b/src/common/guac_surface.c index d7407b4b..d492896e 100644 --- a/src/common/guac_surface.c +++ b/src/common/guac_surface.c @@ -730,7 +730,7 @@ void guac_common_surface_draw(guac_common_surface* surface, int x, int y, cairo_ /* Clip operation */ __guac_common_bound_rect(surface, &rect, &sx, &sy); - if (w <= 0 || h <= 0) + if (rect.width <= 0 || rect.height <= 0) return; /* Update backing surface */ @@ -763,7 +763,7 @@ void guac_common_surface_paint(guac_common_surface* surface, int x, int y, cairo /* Clip operation */ __guac_common_bound_rect(surface, &rect, &sx, &sy); - if (w <= 0 || h <= 0) + if (rect.width <= 0 || rect.height <= 0) return; /* Update backing surface */ @@ -790,7 +790,7 @@ void guac_common_surface_copy(guac_common_surface* src, int sx, int sy, int w, i /* Clip operation */ __guac_common_bound_rect(dst, &rect, &sx, &sy); - if (w <= 0 || h <= 0) + if (rect.width <= 0 || rect.height <= 0) return; /* Update backing surface */ @@ -825,7 +825,7 @@ void guac_common_surface_transfer(guac_common_surface* src, int sx, int sy, int /* Clip operation */ __guac_common_bound_rect(dst, &rect, &sx, &sy); - if (w <= 0 || h <= 0) + if (rect.width <= 0 || rect.height <= 0) return; /* Update backing surface */ @@ -859,7 +859,7 @@ void guac_common_surface_rect(guac_common_surface* surface, /* Clip operation */ __guac_common_bound_rect(surface, &rect, NULL, NULL); - if (w <= 0 || h <= 0) + if (rect.width <= 0 || rect.height <= 0) return; /* Update backing surface */