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.
This commit is contained in:
Torbjörn Andersson 2013-08-08 06:55:17 +02:00
parent fffb2ee3ff
commit b8850522b6

View File

@ -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);
}
}