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.
This commit is contained in:
Martin Nordholts 2010-08-20 18:39:33 +02:00
parent 4f14da5391
commit ac6722929a
1 changed files with 7 additions and 7 deletions

View File

@ -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 */
};