diff options
author | Joel Teichroeb | 2012-04-03 16:54:05 -0700 |
---|---|---|
committer | Joel Teichroeb | 2012-04-03 16:54:05 -0700 |
commit | ab16233318136da52c0cb5b4abf54ac0a2a78f4b (patch) | |
tree | ba91fd107c263583db8c7878799b710103c7d722 /graphics | |
parent | 8dfa33ff1f7e1110d9dd93737eb0b22b61b06b7f (diff) | |
download | scummvm-rg350-ab16233318136da52c0cb5b4abf54ac0a2a78f4b.tar.gz scummvm-rg350-ab16233318136da52c0cb5b4abf54ac0a2a78f4b.tar.bz2 scummvm-rg350-ab16233318136da52c0cb5b4abf54ac0a2a78f4b.zip |
GRAPHICS: Fix casting away const
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/surface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/surface.cpp b/graphics/surface.cpp index fcd702241a..c0f1046eae 100644 --- a/graphics/surface.cpp +++ b/graphics/surface.cpp @@ -295,7 +295,7 @@ Graphics::Surface *Surface::convertTo(const PixelFormat &dstFormat, const byte * assert(palette); for (int y = 0; y < h; y++) { - const byte *srcRow = (byte *)getBasePtr(0, y); + const byte *srcRow = (const byte *)getBasePtr(0, y); byte *dstRow = (byte *)surface->getBasePtr(0, y); for (int x = 0; x < w; x++) { @@ -317,7 +317,7 @@ Graphics::Surface *Surface::convertTo(const PixelFormat &dstFormat, const byte * } else { // Converting from high color to high color for (int y = 0; y < h; y++) { - const byte *srcRow = (byte *)getBasePtr(0, y); + const byte *srcRow = (const byte *)getBasePtr(0, y); byte *dstRow = (byte *)surface->getBasePtr(0, y); for (int x = 0; x < w; x++) { |