[clutter] texture: It's bytes per pixel, not bits
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] texture: It's bytes per pixel, not bits
- Date: Tue, 31 Jan 2012 11:10:47 +0000 (UTC)
commit c95b1265711bb845013f209b7e594b79c5a68eef
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Jan 31 10:23:48 2012 +0000
texture: It's bytes per pixel, not bits
Clarify the error message when checking the bpp argument.
clutter/clutter-texture.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
index 2191aef..53bdb1b 100644
--- a/clutter/clutter-texture.c
+++ b/clutter/clutter-texture.c
@@ -1573,7 +1573,7 @@ get_pixel_format_from_texture_flags (gint bpp,
{
if (G_UNLIKELY (bpp != 4))
{
- g_warning ("Unsupported bits per pixel value '%d': "
+ g_warning ("Unsupported bytes per pixel value '%d': "
"Clutter supports only a value of 4 "
"for RGBA data",
bpp);
@@ -1586,7 +1586,7 @@ get_pixel_format_from_texture_flags (gint bpp,
{
if (G_UNLIKELY (bpp != 3))
{
- g_warning ("Unsupported bits per pixel value '%d': "
+ g_warning ("Unsupported bytes per pixel value '%d': "
"Clutter supports only a BPP value of 3 "
"for RGB data",
bpp);
@@ -1607,14 +1607,14 @@ get_pixel_format_from_texture_flags (gint bpp,
/**
* clutter_texture_set_from_rgb_data:
- * @texture: A #ClutterTexture
- * @data: (array): Image data in RGBA type colorspace.
- * @has_alpha: Set to TRUE if image data has an alpha channel.
- * @width: Width in pixels of image data.
- * @height: Height in pixels of image data
- * @rowstride: Distance in bytes between row starts.
- * @bpp: bytes per pixel (Currently only 3 and 4 supported,
- * depending on @has_alpha)
+ * @texture: a #ClutterTexture
+ * @data: (array): image data in RGBA type colorspace.
+ * @has_alpha: set to %TRUE if image data has an alpha channel.
+ * @width: width in pixels of image data.
+ * @height: height in pixels of image data
+ * @rowstride: distance in bytes between row starts.
+ * @bpp: bytes per pixel (currently only 3 and 4 supported, depending
+ * on the value of @has_alpha)
* @flags: #ClutterTextureFlags
* @error: return location for a #GError, or %NULL.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]