mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
Draw: Fixed minor DrawImage issue
git-svn-id: svn://ultimatepp.org/upp/trunk@6064 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c4de1cac7c
commit
ff8ac4e9a8
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue