summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index df07c16a2..4cdcdb001 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -473,10 +473,10 @@ Image* Image::SDLmerge(Image *image, int x, int y)
static_cast<Uint16>(mBounds.h - y));
// for each pixel lines of a source image
- for (offset_x = (x > 0 ? 0 : -x); offset_x < maxX; offset_x++)
+ for (offset_x = ((x > 0) ? 0 : -x); offset_x < maxX; offset_x++)
{
const int x1 = x0 + offset_x;
- for (offset_y = (y > 0 ? 0 : -y); offset_y < maxY; offset_y++)
+ for (offset_y = ((y > 0) ? 0 : -y); offset_y < maxY; offset_y++)
{
// Computing offset on both images
current_offset = (offset_y * getWidth()) + x1;