diff options
author | Bertrand Augereau | 2008-07-10 18:01:54 +0000 |
---|---|---|
committer | Bertrand Augereau | 2008-07-10 18:01:54 +0000 |
commit | f41ab55021c98e2ae1aee77fa0c1dd45e0475023 (patch) | |
tree | 1ca5cfabc3882b7c869a53c2f12edf93c8ad9342 /backends/platform | |
parent | c8488c060cea860d02fdf59221408f7974a80eab (diff) | |
download | scummvm-rg350-f41ab55021c98e2ae1aee77fa0c1dd45e0475023.tar.gz scummvm-rg350-f41ab55021c98e2ae1aee77fa0c1dd45e0475023.tar.bz2 scummvm-rg350-f41ab55021c98e2ae1aee77fa0c1dd45e0475023.zip |
Fixed a few warnings
svn-id: r32994
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index a72efa9ca2..79b0c5390b 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -160,13 +160,13 @@ bool OSystem_DS::grabRawScreen(Graphics::Surface* surf) { // Ensure we copy using 16 bit quantities due to limitation of VRAM addressing - u16* image = (u16 *) DS::get8BitBackBuffer(); + const u16* image = (const u16 *) DS::get8BitBackBuffer(); for (int y = 0; y < DS::getGameHeight(); y++) { DC_FlushRange(image + (y << 8), DS::getGameWidth()); for (int x = 0; x < DS::getGameWidth() >> 1; x++) { - *(((u16 *) (surf->pixels)) + y * (DS::getGameWidth() >> 1) + x) = image[y << 8 + x]; + *(((u16 *) (surf->pixels)) + y * (DS::getGameWidth() >> 1) + x) = image[(y << 8) + x]; } } @@ -279,7 +279,7 @@ void OSystem_DS::grabOverlay (OverlayColor *buf, int pitch) { void OSystem_DS::copyRectToOverlay (const OverlayColor *buf, int pitch, int x, int y, int w, int h) { u16* bg = (u16 *) DS::get16BitBackBuffer(); - u16* src = (u16 *) buf; + const u16* src = (const u16 *) buf; // if (x + w > 256) w = 256 - x; //if (x + h > 256) h = 256 - y; |