summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-08-03 21:51:24 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-08-03 21:51:24 +0000
commite5d0f500c63607da05b84f0a0374e887ff418027 (patch)
tree62855f2e61f3804ac7568493efb9e96f91fdc9e5 /gdk-pixbuf
parentee18c33dc99495f4489096d9c04968641cabb567 (diff)
downloadgdk-pixbuf-e5d0f500c63607da05b84f0a0374e887ff418027.tar.gz
Clarify misleading explanation of rowstride. (#119000)
2003-08-03 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf.c (gdk_pixbuf_get_rowstride): * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Clarify misleading explanation of rowstride. (#119000)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/ChangeLog6
-rw-r--r--gdk-pixbuf/gdk-pixbuf-data.c5
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c5
3 files changed, 11 insertions, 5 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 48fe53ffb..4f3c7525f 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-03 Matthias Clasen <maclas@gmx.de>
+
+ * gdk-pixbuf.c (gdk_pixbuf_get_rowstride):
+ * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Clarify misleading explanation of
+ rowstride. (#119000)
+
2003-07-24 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Preserve the aspect ratio. (#118145,
diff --git a/gdk-pixbuf/gdk-pixbuf-data.c b/gdk-pixbuf/gdk-pixbuf-data.c
index 5156c4ee8..0686bdefc 100644
--- a/gdk-pixbuf/gdk-pixbuf-data.c
+++ b/gdk-pixbuf/gdk-pixbuf-data.c
@@ -36,7 +36,7 @@
* @bits_per_sample: Number of bits per sample.
* @width: Width of the image in pixels.
* @height: Height of the image in pixels.
- * @rowstride: Distance in bytes between rows.
+ * @rowstride: Distance in bytes between row starts.
* @destroy_fn: Function used to free the data when the pixbuf's reference count
* drops to zero, or %NULL if the data should not be freed.
* @destroy_fn_data: Closure data to pass to the destroy notification function.
@@ -44,8 +44,7 @@
* Creates a new #GdkPixbuf out of in-memory image data. Currently only RGB
* images with 8 bits per sample are supported.
*
- * Return value: A newly-created #GdkPixbuf structure with a reference count of
- * 1.
+ * Return value: A newly-created #GdkPixbuf structure with a reference count of 1.
**/
GdkPixbuf *
gdk_pixbuf_new_from_data (const guchar *data, GdkColorspace colorspace, gboolean has_alpha,
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index 2ae4bc645..1a64de72d 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -395,9 +395,10 @@ gdk_pixbuf_get_height (const GdkPixbuf *pixbuf)
* gdk_pixbuf_get_rowstride:
* @pixbuf: A pixbuf.
*
- * Queries the rowstride of a pixbuf, which is the number of bytes between rows.
+ * Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row
+ * and the start of the next row.
*
- * Return value: Number of bytes between rows.
+ * Return value: Distance between row starts.
**/
int
gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf)