From 74f613962e1090e3ad2db186e555a29c12c03941 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 9 Jun 2011 22:31:20 +0800 Subject: [PATCH] Fix typo in previous commit --- src/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index dc344e381..b8ef697bb 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -177,7 +177,7 @@ pixel *resample_img(pixel *src, int sw, int sh, int rw, int rh) fxceil = (int)ceil(fx); fyceil = (int)ceil(fy); if (fxceil>=sw) fxceil = sw-1; - if (fyceil>=sh) fxceil = sh-1; + if (fyceil>=sh) fyceil = sh-1; tr = src[sw*(int)floor(fy)+fxceil]; tl = src[sw*(int)floor(fy)+(int)floor(fx)]; br = src[sw*fyceil+fxceil]; @@ -217,7 +217,7 @@ pixel *resample_img(pixel *src, int sw, int sh, int rw, int rh) fxceil = (int)ceil(fx); fyceil = (int)ceil(fy); if (fxceil>=sw) fxceil = sw-1; - if (fyceil>=sh) fxceil = sh-1; + if (fyceil>=sh) fyceil = sh-1; tr = oq[sw*(int)floor(fy)+fxceil]; tl = oq[sw*(int)floor(fy)+(int)floor(fx)]; br = oq[sw*fyceil+fxceil];