Fixed a missing return for performance.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@789 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-07-15 21:51:04 +00:00
parent 9b5c411745
commit 95505b00c4
1 changed files with 3 additions and 0 deletions

View File

@ -1282,7 +1282,10 @@ void CImage::copyToScaling(void* target, s32 width, s32 height, ECOLOR_FORMAT fo
pitch = width*bpp;
if (Format==format && Size.Width==width && Size.Height==height && pitch==width*bpp)
{
memcpy(target, Data, height*pitch);
return;
}
const f32 sourceXStep = (f32)Size.Width / (f32)width;
const f32 sourceYStep = (f32)Size.Height / (f32)height;