[Spice-devel] [xf86-PATCH 2/2] Initialize our update region at surface creation, avoids 0 size regions

Jeremy White jwhite at codeweavers.com
Wed Mar 6 10:34:14 PST 2013


Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/dfps.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/dfps.c b/src/dfps.c
index e5a2273..6ac29f9 100644
--- a/src/dfps.c
+++ b/src/dfps.c
@@ -253,6 +253,7 @@ static PixmapPtr dfps_create_pixmap (ScreenPtr screen, int w, int h, int depth,
     info = calloc(1, sizeof(*info));
     if (!info)
         return FALSE;
+    RegionInit(&info->updated_region, NULL, 0);
 
     pixmap = fbCreatePixmap (screen, w, h, depth, usage);
     if (pixmap)
-- 
1.7.10.4




More information about the Spice-devel mailing list