From d60879b535076f6d513755c918f80b905dd352a9 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 30 Aug 2016 21:47:38 +0200 Subject: SDL: Fix const cast --- backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/graphics/surfacesdl/surfacesdl-graphics.cpp') diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index b4b0d33b85..fdf21010e7 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -2308,7 +2308,7 @@ void SurfaceSdlGraphicsManager::blitOSDMessage(SDL_Rect dstRect) { Graphics::PixelFormat dstFormat = _osdFormat; for (int y = 0; y < dstRect.h; y++) { const byte *srcRow = (const byte *)((const byte *)(src->pixels) + y * src->pitch); //src (x, y) == (0, 0) - byte *dstRow = (byte *)((const byte *)(dst->pixels) + (dstRect.y + y) * dst->pitch + dstRect.x * dstFormat.bytesPerPixel); + byte *dstRow = (byte *)((byte *)(dst->pixels) + (dstRect.y + y) * dst->pitch + dstRect.x * dstFormat.bytesPerPixel); for (int x = 0; x < dstRect.w; x++) { uint32 srcColor; -- cgit v1.2.3