]> Pileus Git - ~andy/gtk/commitdiff
quick fix for initializing arrays in benchmark.
authorOwen Taylor <otaylor@redhat.com>
Wed, 5 Jan 2000 23:57:02 +0000 (23:57 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 5 Jan 2000 23:57:02 +0000 (23:57 +0000)
2000-01-05  Owen Taylor  <otaylor@redhat.com>

* gdk-pixbuf/pixops/timescale.c: quick fix for initializing
arrays in benchmark.

gdk-pixbuf/ChangeLog
gdk-pixbuf/pixops/README
gdk-pixbuf/pixops/timescale.c

index 6a109b6bfd80e5be1782918ab832507b3b4fd70a..2387d2478dc2494a711ac13b079ebad62d94e31a 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-05  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk-pixbuf/pixops/timescale.c: quick fix for initializing
+       arrays in benchmark.
+
 2000-01-05  Jonathan Blandford  <jrb@redhat.com>
 
        * gdk-pixbuf/gdk-pixbuf-io.h: Change the order of the update func
index 5518a35d612cd10acc641b527de940b18f686dcf..957a0b3cbe7cfd4863837d998168d007b5cb7f4a 100644 (file)
@@ -33,7 +33,6 @@ for a number of the most common special cases:
  compositing from RGBA to RGBx
  compositing against a color from RGBA and storing in a RGBx buffer
 
-
 TODO
 ====
 
index 1abefb84e9f6c86aade923d3821cae305725158f..0db35c123ecf4db6dd527d0da8d7005bfbde809e 100644 (file)
@@ -41,7 +41,7 @@ init_array (double times[3][3][4])
   
   for (i=0; i<3; i++)
     for (j=0; j<3; j++)
-      for (k=0; j<4; k++)
+      for (k=0; k<4; k++)
        times[i][j][k] = -1;
 }
 
@@ -129,6 +129,10 @@ int main (int argc, char **argv)
 
   printf ("Scaling from (%d, %d) to (%d, %d)\n\n", src_width, src_height, dest_width, dest_height);
 
+  init_array (scale_times);
+  init_array (composite_times);
+  init_array (composite_color_times);
+
   for (src_index = 0; src_index < 3; src_index++)
     for (dest_index = 0; dest_index < 3; dest_index++)
       {