• Robert Sprowson's avatar
    Fix processing of new format sprites with palettes · 338016d7
    Robert Sprowson authored
    * Function 'newropal' was treating palette entries as &00BBGGRR when they are stored as &BBGGRR00, leading to generally wrong colours all round.
    * Also, 256 entry palettes were not distinguished from 64 entry palettes, so files from Paint (which seems to prefer 64 entry ones) were generally black due to reading of the end of the palette.
    * Added text to the info string stating if the input sprite contained a palette.
    * Fixed template buffer overrun when filename is truncated to 12 letters (to formulate a sprite name), the template only reserved 12 letters and hence use of '$' operater in BASIC overran and messed up the border validation.
    Tested with a number of 180dpi 'new' format sprites in 8bpp and 4bpp with and without palettes.
    Version 1.33. Tagged as 'ChangeFSI-1_33'