[gimp] libgimp: Make GimpPixelRgn members signed
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: Make GimpPixelRgn members signed
- Date: Fri, 20 Aug 2010 16:32:08 +0000 (UTC)
commit ac6722929ae5243965d18d4c101942f2727b424d
Author: Martin Nordholts <martinn src gnome org>
Date: Fri Aug 20 18:39:33 2010 +0200
libgimp: Make GimpPixelRgn members signed
To avoid problems in statements like
y = CLAMP (y, 0, pixel_rgn->h - 1);
when y = -1 for example, make GimpPixelRgn members signed. Hopefully
this is a working solution to 573542 and other bugs with statements
like above.
libgimp/gimppixelrgn.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libgimp/gimppixelrgn.h b/libgimp/gimppixelrgn.h
index fbb2d1e..a0cf6a5 100644
--- a/libgimp/gimppixelrgn.h
+++ b/libgimp/gimppixelrgn.h
@@ -30,13 +30,13 @@ struct _GimpPixelRgn
{
guchar *data; /* pointer to region data */
GimpDrawable *drawable; /* pointer to drawable */
- guint bpp; /* bytes per pixel */
- guint rowstride; /* bytes per pixel row */
- guint x, y; /* origin */
- guint w, h; /* width and height of region */
- guint dirty : 1; /* will this region be dirtied? */
- guint shadow : 1; /* will this region use the shadow or normal tiles */
- guint process_count; /* used internally */
+ gint bpp; /* bytes per pixel */
+ gint rowstride; /* bytes per pixel row */
+ gint x, y; /* origin */
+ gint w, h; /* width and height of region */
+ gint dirty : 1; /* will this region be dirtied? */
+ gint shadow : 1; /* will this region use the shadow or normal tiles */
+ gint process_count; /* used internally */
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]