summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-10 21:49:39 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-10 21:49:39 +0000
commit868603bc15afcd2f90c56054ce9975e0fdee0ea6 (patch)
tree2176ca2e2f2bdd2c15dea672b0e9ba0ffda27dea /gdk-pixbuf
parentf74dd2386a74e66736dc3a8981a20c6b0835e6ad (diff)
downloadgtk+-868603bc15afcd2f90c56054ce9975e0fdee0ea6.tar.gz
Replace some hardcoded values with the SUBSAMPLE
Thu Jan 10 16:48:30 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Replace some hardcoded values with the SUBSAMPLE
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/pixops/pixops.c12
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 <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,
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_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++)