commit 47694ff
Michael Forney
·
2013-09-11 08:41:54 +0000 UTC
parent 9c6a405
Style: naming
1 files changed,
+3,
-3
+3,
-3
1@@ -27,9 +27,9 @@ struct buffer_state
2 struct wl_listener destroy_listener;
3 };
4
5-static inline uint32_t format_wayland_to_pixman(uint32_t wayland_format)
6+static inline uint32_t pixman_format(uint32_t format)
7 {
8- switch (wayland_format)
9+ switch (format)
10 {
11 case WL_SHM_FORMAT_XRGB8888:
12 return PIXMAN_x8r8g8b8;
13@@ -234,7 +234,7 @@ void swc_renderer_attach(struct swc_renderer * renderer,
14 uint32_t wayland_format = wl_shm_buffer_get_format(buffer);
15
16 state->shm.image
17- = pixman_image_create_bits(format_wayland_to_pixman(wayland_format),
18+ = pixman_image_create_bits(pixman_format(wayland_format),
19 wl_shm_buffer_get_width(buffer),
20 wl_shm_buffer_get_height(buffer),
21 wl_shm_buffer_get_data(buffer),