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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
---
 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


_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]