diff options
Diffstat (limited to 'graphics/surface.cpp')
-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 a96950d2c6..a37dd57e61 100644 --- a/graphics/surface.cpp +++ b/graphics/surface.cpp @@ -306,7 +306,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++) { @@ -328,7 +328,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++) { |