From: Charlie Brej Date: Sun, 18 Apr 2010 19:43:06 +0000 (+0100) Subject: [image] Give get buffer function more sensible name X-Git-Tag: 0.8.3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ee88aaec705c39b4e5cd18fda634e7585e20e0d;p=thirdparty%2Fplymouth.git [image] Give get buffer function more sensible name There was a "_convert_" in the middle of the function name from a clumsy copy paste. --- diff --git a/src/libply-splash-graphics/ply-entry.c b/src/libply-splash-graphics/ply-entry.c index ee01ee90..028866a9 100644 --- a/src/libply-splash-graphics/ply-entry.c +++ b/src/libply-splash-graphics/ply-entry.c @@ -173,7 +173,7 @@ ply_entry_draw_area (ply_entry_t *entry, if (entry->is_hidden) return; - text_field_buffer = ply_image_convert_get_buffer (entry->text_field_image); + text_field_buffer = ply_image_get_buffer (entry->text_field_image); ply_pixel_buffer_fill_with_buffer (pixel_buffer, text_field_buffer, @@ -182,7 +182,7 @@ ply_entry_draw_area (ply_entry_t *entry, if (entry->is_password) { - bullet_buffer = ply_image_convert_get_buffer (entry->bullet_image); + bullet_buffer = ply_image_get_buffer (entry->bullet_image); ply_pixel_buffer_get_size (bullet_buffer, &bullet_area); if (entry->number_of_bullets <= entry->max_number_of_visible_bullets) diff --git a/src/libply-splash-graphics/ply-image.c b/src/libply-splash-graphics/ply-image.c index b75dcb34..93692424 100644 --- a/src/libply-splash-graphics/ply-image.c +++ b/src/libply-splash-graphics/ply-image.c @@ -256,7 +256,7 @@ ply_image_rotate (ply_image_t *image, } ply_pixel_buffer_t * -ply_image_convert_get_buffer (ply_image_t *image) +ply_image_get_buffer (ply_image_t *image) { assert (image != NULL); diff --git a/src/libply-splash-graphics/ply-image.h b/src/libply-splash-graphics/ply-image.h index 1ef6231a..66fa520d 100644 --- a/src/libply-splash-graphics/ply-image.h +++ b/src/libply-splash-graphics/ply-image.h @@ -39,7 +39,7 @@ long ply_image_get_width (ply_image_t *image); long ply_image_get_height (ply_image_t *image); ply_image_t *ply_image_resize (ply_image_t *image, long width, long height); ply_image_t *ply_image_rotate (ply_image_t *oldimage, long center_x, long center_y, double theta_offset); -ply_pixel_buffer_t *ply_image_convert_get_buffer (ply_image_t *image); +ply_pixel_buffer_t *ply_image_get_buffer (ply_image_t *image); ply_pixel_buffer_t *ply_image_convert_to_pixel_buffer (ply_image_t *image); #endif