Adjust width in dump_bitmap() for FF

svn-id: r21467
This commit is contained in:
Travis Howell 2006-03-27 13:32:44 +00:00
parent c12839ec18
commit 017bcdb445

View File

@ -333,8 +333,11 @@ void dump_bmp(const char *filename, int w, int h, const byte *bytes, const uint3
}
void SimonEngine::dump_bitmap(const char *filename, const byte *offs, int w, int h, int flags, const byte *palette,
byte base)
{
byte base) {
if (getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2)
w *= 16;
/* allocate */
byte *b = (byte *)malloc(w * h);
int i, j;