aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-08-30 21:47:38 +0200
committerWillem Jan Palenstijn2016-08-30 21:52:27 +0200
commitd60879b535076f6d513755c918f80b905dd352a9 (patch)
treeed42f6e24fcd6cb255f900f932800a8cccbffbb5 /backends/graphics/surfacesdl/surfacesdl-graphics.cpp
parent6a081212f148cb36cdf6e65589bb63b6bf17887c (diff)
downloadscummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.tar.gz
scummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.tar.bz2
scummvm-rg350-d60879b535076f6d513755c918f80b905dd352a9.zip
SDL: Fix const cast
Diffstat (limited to 'backends/graphics/surfacesdl/surfacesdl-graphics.cpp')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp2
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;