freemint / fvdi

fVDI fork with additional fixes and drivers.
https://fvdi.sourceforge.io
7 stars 6 forks source link

Fix palette loading #14

Closed chrisridd closed 2 years ago

chrisridd commented 2 years ago

The Fseek() parameters were in the wrong order. Adding an extra check to the main Fread() helped discover this.

Now the code should be able to read PA01 palettes, as well as the old broken palettes without the header.

chrisridd commented 2 years ago

All the other calls to Fseek() in FVDI seem to have the arguments in the correct order.

mfro0 commented 2 years ago

Thank you for that PR. Very welcome.

Can we have the same without any whitespace changes, by chance? Would make follow-ups a lot easier later on.

mfro0 commented 2 years ago

Thanks!