diff options
author | Willem Jan Palenstijn | 2016-08-30 21:47:38 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2016-08-30 21:52:27 +0200 |
commit | d60879b535076f6d513755c918f80b905dd352a9 (patch) | |
tree | ed42f6e24fcd6cb255f900f932800a8cccbffbb5 /backends/graphics | |
parent | 6a081212f148cb36cdf6e65589bb63b6bf17887c (diff) | |
download | scummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.tar.gz scummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.tar.bz2 scummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.zip |
SDL: Fix const cast
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |