aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler.cpp
diff options
context:
space:
mode:
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;