summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops/pixops.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-01-22 23:13:02 +0000
committerArturo Espinosa <unammx@src.gnome.org>2000-01-22 23:13:02 +0000
commit706e553eb706db354b26aa241652f45f17f6aa90 (patch)
tree34159b710c3c4f32b86011dd82836ab0d4f3a8a5 /gdk-pixbuf/pixops/pixops.c
parent72ee1f0c5088253e68bd51d6bcc826f466b7a974 (diff)
downloadgdk-pixbuf-706e553eb706db354b26aa241652f45f17f6aa90.tar.gz
Bumped version number to 0.5.0.
2000-01-22 Federico Mena Quintero <federico@helixcode.com> * configure.in: Bumped version number to 0.5.0. * gdk-pixbuf/pixops/timescale.c (dump_array): Removed unused variable. (main): Return 0. * gdk-pixbuf/pixops/pixops.c (pixops_composite_color_nearest): Put parentheses around + in a shift to remove a compiler warning. (pixops_process): Likewise. Patch from Ross Golder <rossigee@bigfoot.com> to create an RPM specfile: * configure.in: Added gdk-pixbuf.spec to AC_OUTPUT. * Makefile.am (EXTRA_DIST): Added gdk-pixbuf.spec.in
Diffstat (limited to 'gdk-pixbuf/pixops/pixops.c')
-rw-r--r--gdk-pixbuf/pixops/pixops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c
index cda92da8f..f0e28f1a2 100644
--- a/gdk-pixbuf/pixops/pixops.c
+++ b/gdk-pixbuf/pixops/pixops.c
@@ -278,7 +278,7 @@ pixops_composite_color_nearest (art_u8 *dest_buf,
else
a0 = overall_alpha;
- if ((j + check_x >> check_shift) & 1)
+ if (((j + check_x) >> check_shift) & 1)
{
dest[0] = r2 + ((a0 * ((int)p[0] - r2) + 0xff) >> 8);
dest[1] = g2 + ((a0 * ((int)p[1] - g2) + 0xff) >> 8);
@@ -933,7 +933,7 @@ pixops_process (art_u8 *dest_buf,
int dest_x;
int scaled_x_offset = floor (filter->x_offset * (1 << SCALE_SHIFT));
- int run_end_index = ((src_width - filter->n_x + 1 << SCALE_SHIFT) - scaled_x_offset - 1) / x_step + 1 - render_x0;
+ int run_end_index = (((src_width - filter->n_x + 1) << SCALE_SHIFT) - scaled_x_offset - 1) / x_step + 1 - render_x0;
int check_shift = check_size ? get_check_shift (check_size) : 0;
y = render_y0 * y_step + floor (filter->y_offset * (1 << SCALE_SHIFT));