commit 0aea28076e617c793e038b3de7971b7d9089e3df
parent cc21dfaff82f7d9970281c81a6136dbe8d277f1a
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 31 Dec 2013 23:32:07 -0800
Style: pixman_format -> format_wld_to_pixman
Diffstat:
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/intel.c b/intel.c
@@ -332,7 +332,8 @@ pixman_image_t * intel_map(struct wld_drawable * drawable)
{
drm_intel_gem_bo_map_gtt(intel->bo);
intel->virtual = pixman_image_create_bits_no_clear
- (pixman_format(drawable->format), drawable->width, drawable->height,
+ (format_wld_to_pixman(drawable->format),
+ drawable->width, drawable->height,
intel->bo->virtual, drawable->pitch);
pixman_image_set_destroy_function(intel->virtual, &destroy_virtual,
intel);
diff --git a/pixman.c b/pixman.c
@@ -112,7 +112,7 @@ bool pixman_initialize_drawable
drawable->base.pitch = pitch;
drawable->context = context;
- drawable->image = pixman_image_create_bits(pixman_format(format),
+ drawable->image = pixman_image_create_bits(format_wld_to_pixman(format),
width, height,
(uint32_t *) data, pitch);
diff --git a/wld-private.h b/wld-private.h
@@ -119,7 +119,7 @@ static inline uint8_t format_bytes_per_pixel(enum wld_format format)
}
}
-static inline pixman_format_code_t pixman_format(uint32_t format)
+static inline pixman_format_code_t format_wld_to_pixman(uint32_t format)
{
switch (format)
{