From: Ray Strode Date: Wed, 9 Feb 2011 20:26:21 +0000 (-0500) Subject: frame-buffer: clean up warnings X-Git-Tag: 0.8.4~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=515e9cef13a74f4f69edd9cce0fcbbf57376e4d5;p=thirdparty%2Fplymouth.git frame-buffer: clean up warnings --- diff --git a/src/plugins/renderers/frame-buffer/plugin.c b/src/plugins/renderers/frame-buffer/plugin.c index 479e1c28..d94317b6 100644 --- a/src/plugins/renderers/frame-buffer/plugin.c +++ b/src/plugins/renderers/frame-buffer/plugin.c @@ -173,7 +173,6 @@ flush_area_to_any_device (ply_renderer_backend_t *backend, unsigned long row, column; uint32_t *shadow_buffer; char *row_backend; - size_t bytes_per_row; unsigned long x1, y1, x2, y2; x1 = area_to_flush->x; @@ -181,7 +180,6 @@ flush_area_to_any_device (ply_renderer_backend_t *backend, x2 = x1 + area_to_flush->width; y2 = y1 + area_to_flush->height; - bytes_per_row = area_to_flush->width * backend->bytes_per_pixel; row_backend = malloc (backend->row_stride); shadow_buffer = ply_pixel_buffer_get_argb32_data (backend->head.pixel_buffer); for (row = y1; row < y2; row++) @@ -214,19 +212,18 @@ flush_area_to_xrgb32_device (ply_renderer_backend_t *backend, ply_renderer_head_t *head, ply_rectangle_t *area_to_flush) { - unsigned long x1, y1, x2, y2, y; + unsigned long x, y, y1, y2; uint32_t *shadow_buffer; char *dst, *src; - x1 = area_to_flush->x; + x = area_to_flush->x; y1 = area_to_flush->y; - x2 = x1 + area_to_flush->width; y2 = y1 + area_to_flush->height; shadow_buffer = ply_pixel_buffer_get_argb32_data (backend->head.pixel_buffer); - dst = &head->map_address[y1 * backend->row_stride + x1 * backend->bytes_per_pixel]; - src = (char *) &shadow_buffer[y1 * head->area.width + x1]; + dst = &head->map_address[y1 * backend->row_stride + x * backend->bytes_per_pixel]; + src = (char *) &shadow_buffer[y1 * head->area.width + x]; if (area_to_flush->width == backend->row_stride) {