diff options
author | Larsson@.(none) <Larsson@.(none)> | 2010-02-26 08:58:07 +0100 |
---|---|---|
committer | unknown <Alexander Larsson@.(none)> | 2010-03-01 15:12:35 +0100 |
commit | c28169976a9050a9a05cbb3dd4543edd34d3c82e (patch) | |
tree | 5295409e75f9cca7e483eda81cf2603e37be869c /common/canvas_utils.c | |
parent | 98f7d96336d2e05f770918f8977f5909f2fac44a (diff) |
Make gdi canvas build in the new pixman world
Diffstat (limited to 'common/canvas_utils.c')
-rw-r--r-- | common/canvas_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/canvas_utils.c b/common/canvas_utils.c index b70b17b..89ebe12 100644 --- a/common/canvas_utils.c +++ b/common/canvas_utils.c @@ -173,7 +173,7 @@ pixman_image_t * surface_create(pixman_format_code_t format, int width, int heig bitmap = CreateDIBSection(dc, &bitmap_info.inf, 0, (VOID **)&data, NULL, 0); if (!bitmap) { - CloseHandle(bitmap_cache->mutex); + CloseHandle(mutex); CANVAS_ERROR("Unable to CreateDIBSection"); } @@ -184,15 +184,15 @@ pixman_image_t * surface_create(pixman_format_code_t format, int width, int heig nstride = -nstride; } - surface = pixman_image_create_bits(format, width, height, (uint32_t *)src, stride); + surface = pixman_image_create_bits(format, width, height, (uint32_t *)src, nstride); if (surface == NULL) { CloseHandle(mutex); DeleteObject(bitmap); CANVAS_ERROR("create surface failed, out of memory"); } pixman_data = pixman_image_add_data(surface); - pixman_data.bitmap = bitmap; - pixman_data.mutex = mutex; + pixman_data->bitmap = bitmap; + pixman_data->mutex = mutex; gdi_handlers++; return surface; } else { |