From 868603bc15afcd2f90c56054ce9975e0fdee0ea6 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 10 Jan 2002 21:49:39 +0000 Subject: [PATCH] Replace some hardcoded values with the SUBSAMPLE Thu Jan 10 16:48:30 2002 Owen Taylor * pixops/pixops.c: Replace some hardcoded values with the SUBSAMPLE --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/pixops/pixops.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index bcbf2a1860..4c1e139222 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 10 16:48:30 2002 Owen Taylor + + * pixops/pixops.c: Replace some hardcoded values with the + SUBSAMPLE + Wed Jan 9 11:29:44 2002 Owen Taylor * Makefile.am (s-enum-types-h): Include glib-object.h, diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c index ef5afd7475..879211492d 100644 --- a/gdk-pixbuf/pixops/pixops.c +++ b/gdk-pixbuf/pixops/pixops.c @@ -1081,8 +1081,8 @@ tile_make_weights (PixopsFilter *filter, double x_scale, double y_scale, double for (j_offset=0; j_offsetweights + ((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_offsetweights + ((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_offsetweights + ((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++)