]> Pileus Git - ~andy/gtk/commitdiff
Replace some hardcoded values with the SUBSAMPLE
authorOwen Taylor <otaylor@redhat.com>
Thu, 10 Jan 2002 21:49:39 +0000 (21:49 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 10 Jan 2002 21:49:39 +0000 (21:49 +0000)
Thu Jan 10 16:48:30 2002  Owen Taylor  <otaylor@redhat.com>

        * pixops/pixops.c: Replace some hardcoded values with the
        SUBSAMPLE

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

index bcbf2a1860d10a55ae639af6895ebcca7828ecc9..4c1e1392221bde1987a610c494b9ab1d18efded2 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jan 10 16:48:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * pixops/pixops.c: Replace some hardcoded values with the 
+       SUBSAMPLE 
+
 Wed Jan  9 11:29:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * Makefile.am (s-enum-types-h): Include glib-object.h,
index ef5afd74759fd117da74ecbf7ef1e337eeefe8fd..879211492dcc1e9ff9f6cb058bbf967ce3a1cfe0 100644 (file)
@@ -1081,8 +1081,8 @@ tile_make_weights (PixopsFilter *filter, double x_scale, double y_scale, double
     for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
       {
        int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
-       double x = (double)j_offset / 16;
-       double y = (double)i_offset / 16;
+       double x = (double)j_offset / SUBSAMPLE;
+       double y = (double)i_offset / SUBSAMPLE;
        int i,j;
          
        for (i = 0; i < n_y; i++)
@@ -1167,8 +1167,8 @@ bilinear_make_fast_weights (PixopsFilter *filter, double x_scale, double y_scale
     for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
       {
        int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
-       double x = (double)j_offset / 16;
-       double y = (double)i_offset / 16;
+       double x = (double)j_offset / SUBSAMPLE;
+       double y = (double)i_offset / SUBSAMPLE;
        int i,j;
 
        if (x_scale > 1.0)      /* Bilinear */
@@ -1311,8 +1311,8 @@ bilinear_make_weights (PixopsFilter *filter, double x_scale, double y_scale, dou
     for (j_offset=0; j_offset<SUBSAMPLE; j_offset++)
       {
        int *pixel_weights = filter->weights + ((i_offset*SUBSAMPLE) + j_offset) * n_x * n_y;
-       double x = (double)j_offset / 16;
-       double y = (double)i_offset / 16;
+       double x = (double)j_offset / SUBSAMPLE;
+       double y = (double)i_offset / SUBSAMPLE;
        int i,j;
          
        for (i = 0; i < n_y; i++)