pixel-array: rename new_from_size to new_with_size

It is more in keeping with other coding conventions in Cogl to use new
"with" size instead of new "from" size.
This commit is contained in:
Robert Bragg 2010-07-04 00:45:12 +01:00
parent 8ae0478850
commit cfef390d87
2 changed files with 10 additions and 10 deletions

View File

@ -129,10 +129,10 @@ cogl_pixel_array_new (unsigned int size)
} }
CoglPixelArray * CoglPixelArray *
cogl_pixel_array_new_for_size (unsigned int width, cogl_pixel_array_new_with_size (unsigned int width,
unsigned int height, unsigned int height,
CoglPixelFormat format, CoglPixelFormat format,
unsigned int *rowstride) unsigned int *rowstride)
{ {
CoglPixelArray *buffer; CoglPixelArray *buffer;
CoglPixelArray *pixel_array; CoglPixelArray *pixel_array;

View File

@ -44,7 +44,7 @@ G_BEGIN_DECLS
*/ */
#define cogl_pixel_array_new cogl_pixel_array_new_EXP #define cogl_pixel_array_new cogl_pixel_array_new_EXP
#define cogl_pixel_array_new_for_size cogl_pixel_array_new_for_size_EXP #define cogl_pixel_array_new_with_size cogl_pixel_array_new_with_size_EXP
#define cogl_is_pixel_array cogl_is_pixel_array_EXP #define cogl_is_pixel_array cogl_is_pixel_array_EXP
#if 0 #if 0
#define cogl_pixel_array_set_region cogl_pixel_array_set_region_EXP #define cogl_pixel_array_set_region cogl_pixel_array_set_region_EXP
@ -69,7 +69,7 @@ CoglPixelArray *
cogl_pixel_array_new (unsigned int size); cogl_pixel_array_new (unsigned int size);
/** /**
* cogl_pixel_array_new_for_size: * cogl_pixel_array_new_with_size:
* @width: width of the pixel array in pixels * @width: width of the pixel array in pixels
* @height: height of the pixel array in pixels * @height: height of the pixel array in pixels
* @format: the format of the pixels the array will store * @format: the format of the pixels the array will store
@ -91,10 +91,10 @@ cogl_pixel_array_new (unsigned int size);
* Stability: Unstable * Stability: Unstable
*/ */
CoglPixelArray * CoglPixelArray *
cogl_pixel_array_new_for_size (unsigned int width, cogl_pixel_array_new_with_size (unsigned int width,
unsigned int height, unsigned int height,
CoglPixelFormat format, CoglPixelFormat format,
unsigned int *stride); unsigned int *stride);
/** /**
* cogl_is_pixel_array: * cogl_is_pixel_array: