summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 04754a975..f07c6b48d 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -968,7 +968,7 @@ void Graphics::fillRectangle(const gcn::Rectangle& rectangle)
for (x = x1; x < x2; x++)
{
Uint32 *p = p0 + x;
- Uint32 dst = *reinterpret_cast<Uint32*>(p);
+ const Uint32 dst = *p;
*p = cB[dst & 0xff] | cG[(dst & 0xff00) >> 8]
| cR[(dst & 0xff0000) >> 16];
}