[cairo] [PATCH] initialize clip_region when creating a new win32_surface

Shixin Zeng zeng.shixin at gmail.com
Wed Aug 26 14:28:27 PDT 2009


---
 src/cairo-win32-surface.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index 12219e9..bc7bd4e 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -359,6 +359,7 @@ _cairo_win32_surface_create_for_dc (HDC             original_dc,
 
     surface->initial_clip_rgn = NULL;
     surface->had_simple_clip = FALSE;
+	surface->clip_region = NULL;
 
     surface->extents = surface->clip_rect;
     surface->font_subsets = NULL;
@@ -1759,6 +1760,8 @@ cairo_win32_surface_create (HDC hdc)
     surface->extents.width = rect.right - rect.left;
     surface->extents.height = rect.bottom - rect.top;
 
+	surface->clip_region = NULL;
+
     surface->flags = _cairo_win32_flags_for_dc (surface->dc);
 
     _cairo_surface_init (&surface->base, &cairo_win32_surface_backend,
-- 
1.6.4.msysgit.0



More information about the cairo mailing list