summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 3693666ea..a6da603f6 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -1113,8 +1113,9 @@ void Graphics::fillRectangle(const gcn::Rectangle& rectangle)
for (y = y1; y < y2; y++)
{
- uint32_t *p0 = reinterpret_cast<uint32_t*>(static_cast<uint8_t*>(
- mTarget->pixels) + y * mTarget->pitch);
+ uint32_t *p0 = reinterpret_cast<uint32_t*>(
+ static_cast<uint8_t*>(mTarget->pixels)
+ + y * mTarget->pitch);
for (x = x1; x < x2; x++)
{
uint32_t *p = p0 + x;