aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler.cpp
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-12-22 11:22:15 +0000
committerJordi Vilalta Prat2008-12-22 11:22:15 +0000
commitb1999a2a16b83aa031df2ce1cb266b7fea8847da (patch)
treea042bbc975ead7e8b38243d0d25822d70e72fe69 /graphics/scaler.cpp
parent2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f (diff)
downloadscummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.tar.gz
scummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.tar.bz2
scummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.zip
Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
Diffstat (limited to 'graphics/scaler.cpp')
-rw-r--r--graphics/scaler.cpp10
1 files changed, 5 insertions, 5 deletions
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;