Draw: Fixed minor DrawImage issue

git-svn-id: svn://ultimatepp.org/upp/trunk@6064 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-13 09:26:42 +00:00
parent c4de1cac7c
commit ff8ac4e9a8
2 changed files with 1 additions and 2 deletions

View file

@ -238,7 +238,7 @@ void Draw::DrawImage(int x, int y, const Image& img, const Rect& src, Color colo
{
if(IsNull(color)) return;
Size sz = img.GetSize();
DrawImageOp(x, y, sz.cx, sz.cy, img, src, color);
DrawImageOp(x, y, src.Width(), src.Height(), img, src, color);
}
void Draw::DrawImage(int x, int y, const Image& img, Color color)

View file

@ -192,7 +192,6 @@ struct sCachedRescale : public ImageMaker
virtual Image Make() const {
return IsNull(filter) ? Rescale(img, sz, src) : RescaleFilter(img, sz, src, filter);
}
};
Image CachedRescale(const Image& m, Size sz, const Rect& src, int filter)