Fix endian aware load/save when SDL is disabled

This commit is contained in:
Thomas Bernard
2018-06-22 12:27:52 +02:00
parent 161357d331
commit 3e32bc0c39
2 changed files with 78 additions and 0 deletions

View File

@@ -1458,6 +1458,12 @@ void Load_IFF(T_IO_Context * context)
{
nb_colors = section_size/3;
if (nb_colors > 256)
{
File_error = 1;
break;
}
if (current_frame != 0)
Warning("One CMAP per frame is not supported");
if ((header.BitPlanes==6 && nb_colors==16) || (header.BitPlanes==8 && nb_colors==64))