Skip to content

Commit

Permalink
GRAPHICS: Fix incorrect parameter order for getBasePtr.
Browse files Browse the repository at this point in the history
This caused createThumbnail() to crash, e.g. when saving in the
Kyrandia engine. Probably other engines as well.
  • Loading branch information
Torbjörn Andersson committed Aug 8, 2013
1 parent fffb2ee commit b885052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/scaler/thumbnail_intern.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit b885052

Please sign in to comment.