From f9d7b78ec27782438a21586827cecee50eaf5ac2 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 7 May 2005 23:26:30 +0000 Subject: [PATCH] fix some more y0, y1 complaints git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@506 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/art_rgba_rgba_affine.c | 10 +++++----- src/art_rgba_rgba_affine.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/art_rgba_rgba_affine.c b/src/art_rgba_rgba_affine.c index b6e6f48..44e5385 100644 --- a/src/art_rgba_rgba_affine.c +++ b/src/art_rgba_rgba_affine.c @@ -65,7 +65,7 @@ **/ void gnome_print_art_rgba_rgba_affine (art_u8 *dst, - int x0, int y0, int x1, int y1, int dst_rowstride, + int libart_x0, int libart_y0, int libart_x1, int libart_y1, int dst_rowstride, const art_u8 *src, int src_width, int src_height, int src_rowstride, const double affine[6], @@ -89,14 +89,14 @@ gnome_print_art_rgba_rgba_affine (art_u8 *dst, dst_linestart = dst; art_affine_invert (inv, affine); - for (y = y0; y < y1; y++) + for (y = libart_y0; y < libart_y1; y++) { pt.y = y + 0.5; - run_x0 = x0; - run_x1 = x1; + run_x0 = libart_x0; + run_x1 = libart_x1; art_rgb_affine_run (&run_x0, &run_x1, y, src_width, src_height, inv); - dst_p = dst_linestart + (run_x0 - x0) * 4; + dst_p = dst_linestart + (run_x0 - libart_x0) * 4; for (x = run_x0; x < run_x1; x++) { pt.x = x + 0.5; diff --git a/src/art_rgba_rgba_affine.h b/src/art_rgba_rgba_affine.h index 3afc120..3091414 100644 --- a/src/art_rgba_rgba_affine.h +++ b/src/art_rgba_rgba_affine.h @@ -70,7 +70,7 @@ **/ void gnome_print_art_rgba_rgba_affine (art_u8 *dst, - int x0, int y0, int x1, int y1, int dst_rowstride, + int libart_x0, int libart_y0, int libart_x1, int libart_y1, int dst_rowstride, const art_u8 *src, int src_width, int src_height, int src_rowstride, const double affine[6], -- 2.11.0