diff options
author | Torbjörn Andersson | 2013-08-08 06:55:17 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-08-08 06:55:17 +0200 |
commit | b8850522b6a94a1375d110d58f34e1106b428e2e (patch) | |
tree | 8524c814934d63e9e5f7282503020b3b6ce461cf | |
parent | fffb2ee3ffab2a4689b32651efa0b345923ddd69 (diff) | |
download | scummvm-rg350-b8850522b6a94a1375d110d58f34e1106b428e2e.tar.gz scummvm-rg350-b8850522b6a94a1375d110d58f34e1106b428e2e.tar.bz2 scummvm-rg350-b8850522b6a94a1375d110d58f34e1106b428e2e.zip |
GRAPHICS: Fix incorrect parameter order for getBasePtr.
This caused createThumbnail() to crash, e.g. when saving in the
Kyrandia engine. Probably other engines as well.
-rw-r--r-- | graphics/scaler/thumbnail_intern.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp index e6e4a1a298..c30fc3b6fd 100644 --- a/graphics/scaler/thumbnail_intern.cpp +++ b/graphics/scaler/thumbnail_intern.cpp @@ -247,7 +247,7 @@ bool createThumbnail(Graphics::Surface *surf, const uint8 *pixels, int w, int h, g = palette[pixels[y * w + x] * 3 + 1]; b = palette[pixels[y * w + x] * 3 + 2]; - *((uint16 *)screen.getBasePtr(y, x)) = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b); + *((uint16 *)screen.getBasePtr(x, y)) = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b); } } |