Mercurial > hg > dmlib
comparison minijss/jloadxm.c @ 1186:eca2784bff75
It seems that the number of rows in XM format version 0x0102 needs + 1.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 12:08:56 +0200 |
parents | cdba23d3fd0d |
children | f195dd7bfa48 |
comparison
equal
deleted
inserted
replaced
1185:cdba23d3fd0d | 1186:eca2784bff75 |
---|---|
261 !dmf_read_byte(inFile, &tmp) || | 261 !dmf_read_byte(inFile, &tmp) || |
262 !dmf_read_le16(inFile, &xmP.size)) | 262 !dmf_read_le16(inFile, &xmP.size)) |
263 JSSERROR(DMERR_FREAD, DMERR_FREAD, | 263 JSSERROR(DMERR_FREAD, DMERR_FREAD, |
264 "Could not read pattern header data #%d.\n", | 264 "Could not read pattern header data #%d.\n", |
265 index); | 265 index); |
266 xmP.nrows = tmp; | 266 |
267 xmP.nrows = ((Uint16) tmp) + 1; | |
267 } | 268 } |
268 else | 269 else |
269 { | 270 { |
270 if (xmP.headSize != 4 + 1 + 2 + 2) | 271 if (xmP.headSize != 4 + 1 + 2 + 2) |
271 JSSERROR(DMERR_NOT_SUPPORTED, DMERR_NOT_SUPPORTED, | 272 JSSERROR(DMERR_NOT_SUPPORTED, DMERR_NOT_SUPPORTED, |