diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-28 13:47:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-28 13:47:32 +0300 |
commit | fbcfa27edf518835976e140ec160db009186bc16 (patch) | |
tree | 52e2999ffe9ba3971f2b4334be7c8c42754a7e03 /src/graphics.cpp | |
parent | caf62e4d1c039f8d4d33bfd05f476890fdc79fcf (diff) | |
download | manaverse-fbcfa27edf518835976e140ec160db009186bc16.tar.gz manaverse-fbcfa27edf518835976e140ec160db009186bc16.tar.bz2 manaverse-fbcfa27edf518835976e140ec160db009186bc16.tar.xz manaverse-fbcfa27edf518835976e140ec160db009186bc16.zip |
Fix code style and add some checks.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 2 |
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]; } |