From bb737db5bdf19f5a8c03d79ffc2cfb2742b0342e Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 13 May 2013 11:52:50 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@6066 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/Draw.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uppsrc/Draw/Draw.cpp b/uppsrc/Draw/Draw.cpp index d03f1efee..8ccf8208c 100644 --- a/uppsrc/Draw/Draw.cpp +++ b/uppsrc/Draw/Draw.cpp @@ -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)