Outstanding patches, #55148



Another pixbuf patch. The description says
compositing breaks when the edges of the source image have bright pixels
because of some incorrectly signed variables and stuff.
Ok to commit ?
MatthiasIndex: pixops.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk-pixbuf/pixops/pixops.c,v
retrieving revision 1.16
diff -u -u -r1.16 pixops.c
--- pixops.c	2001/05/07 15:58:42	1.16
+++ pixops.c	2001/05/24 12:06:34
@@ -30,7 +30,7 @@
 typedef void (*PixopsPixelFunc) (guchar *dest, int dest_x, int
dest_channels, int dest_has_alpha,
 				 int src_has_alpha, int check_size, guint32 color1,
 				 guint32 color2,
-				 int r, int g, int b, int a);
+				 guint r, guint g, guint b, guint a);

 static int
 get_check_shift (int check_size)
@@ -321,7 +321,7 @@
 static void
 composite_pixel (guchar *dest, int dest_x, int dest_channels, int
dest_has_alpha,
 		 int src_has_alpha, int check_size, guint32 color1, guint32 color2,
-		 int r, int g, int b, int a)
+		 guint r, guint g, guint b, guint a)
 {
   if (dest_has_alpha)
     {
@@ -525,7 +525,7 @@
 static void
 composite_pixel_color (guchar *dest, int dest_x, int dest_channels, int
dest_has_alpha,
 		       int src_has_alpha, int check_size, guint32 color1, guint32 color2,
-		       int r, int g, int b, int a)
+		       guint r, guint g, guint b, guint a)
 {
   int dest_r, dest_g, dest_b;
   int check_shift = get_check_shift (check_size);
@@ -671,7 +671,7 @@
 static void
 scale_pixel (guchar *dest, int dest_x, int dest_channels, int
dest_has_alpha,
 	     int src_has_alpha, int check_size, guint32 color1, guint32 color2,
-	     int r, int g, int b, int a)
+	     guint r, guint g, guint b, guint a)
 {
   if (src_has_alpha)
     {









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]