.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@6066 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-13 11:52:50 +00:00
parent a505beca6d
commit 5590b43597

View file

@ -237,7 +237,6 @@ void Draw::DrawImage(int x, int y, const Image& img)
void Draw::DrawImage(int x, int y, const Image& img, const Rect& src, Color color)
{
if(IsNull(color)) return;
Size sz = img.GetSize();
DrawImageOp(x, y, src.Width(), src.Height(), img, src, color);
}
@ -245,7 +244,7 @@ void Draw::DrawImage(int x, int y, const Image& img, Color color)
{
if(IsNull(color)) return;
Size sz = img.GetSize();
DrawImageOp(x, y, sz.cx, sz.cy, img, img.GetSize(), color);
DrawImageOp(x, y, sz.cx, sz.cy, img, sz, color);
}
void Draw::DrawData(int x, int y, int cx, int cy, const String& data, const char *type)