aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/scaler.cpp')
-rw-r--r--graphics/scaler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp
index 868ecb6ab7..9e8e58180d 100644
--- a/graphics/scaler.cpp
+++ b/graphics/scaler.cpp
@@ -127,9 +127,8 @@ 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))
- {
+ // 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;
}