From b1999a2a16b83aa031df2ce1cb266b7fea8847da Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Mon, 22 Dec 2008 11:22:15 +0000 Subject: Fixed indentation and removed whitespaces at the end of line svn-id: r35481 --- graphics/scaler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'graphics/scaler.cpp') diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index 9e8e58180d..e1f3775eac 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -127,11 +127,11 @@ void DestroyScalers(){ */ void Normal1x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { - // Spot the case when it can all be done in 1 hit - if (((int)srcPitch == 2 * width) && ((int)dstPitch == 2 * width)) { - width *= height; - height = 1; - } + // Spot the case when it can all be done in 1 hit + if (((int)srcPitch == 2 * width) && ((int)dstPitch == 2 * width)) { + width *= height; + height = 1; + } while (height--) { memcpy(dstPtr, srcPtr, 2 * width); srcPtr += srcPitch; -- cgit v1.2.3