Load_IFF() support ANNO chunks

This commit is contained in:
Thomas Bernard 2018-02-04 01:13:52 +01:00
parent 747867b9e2
commit f6fa546480

View File

@ -816,6 +816,18 @@ printf("%d x %d = %d %d\n", tiny_width, tiny_height, tiny_width*tiny_height, s
else else
fseek(IFF_file, (section_size+1)&~1, SEEK_CUR); fseek(IFF_file, (section_size+1)&~1, SEEK_CUR);
} }
else if (memcmp(section, "ANNO", 4) == 0)
{
dword length;
section_size = (section_size + 1) & ~1;
length = section_size;
if (length > COMMENT_SIZE)
length = COMMENT_SIZE;
Read_bytes(IFF_file,context->Comment,length);
context->Comment[length]='\0';
section_size -= length;
fseek(IFF_file, section_size, SEEK_CUR);
}
else if (memcmp(section, "BODY", 4) == 0) else if (memcmp(section, "BODY", 4) == 0)
{ {
Original_screen_X = header.X_screen; Original_screen_X = header.X_screen;