Commit 338016d7 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix processing of new format sprites with palettes

* 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'
parent 92a964c2
No preview for this file type
No preview for this file type
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
GBLS Module_HelpVersion GBLS Module_HelpVersion
GBLS Module_ComponentName GBLS Module_ComponentName
GBLS Module_ComponentPath GBLS Module_ComponentPath
Module_MajorVersion SETS "1.32" Module_MajorVersion SETS "1.33"
Module_Version SETA 132 Module_Version SETA 133
Module_MinorVersion SETS "" Module_MinorVersion SETS ""
Module_Date SETS "11 Aug 2012" Module_Date SETS "27 Aug 2012"
Module_ApplicationDate SETS "11-Aug-12" Module_ApplicationDate SETS "27-Aug-12"
Module_ComponentName SETS "ChangeFSI" Module_ComponentName SETS "ChangeFSI"
Module_ComponentPath SETS "mixed/RiscOS/Sources/Apps/ChangeFSI" Module_ComponentPath SETS "mixed/RiscOS/Sources/Apps/ChangeFSI"
Module_FullVersion SETS "1.32" Module_FullVersion SETS "1.33"
Module_HelpVersion SETS "1.32 (11 Aug 2012)" Module_HelpVersion SETS "1.33 (27 Aug 2012)"
END END
/* (1.32) /* (1.33)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * Last processed by srccommit version: 1.1.
* *
*/ */
#define Module_MajorVersion_CMHG 1.32 #define Module_MajorVersion_CMHG 1.33
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 11 Aug 2012 #define Module_Date_CMHG 27 Aug 2012
#define Module_MajorVersion "1.32" #define Module_MajorVersion "1.33"
#define Module_Version 132 #define Module_Version 133
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "11 Aug 2012" #define Module_Date "27 Aug 2012"
#define Module_ApplicationDate "11-Aug-12" #define Module_ApplicationDate "27-Aug-12"
#define Module_ComponentName "ChangeFSI" #define Module_ComponentName "ChangeFSI"
#define Module_ComponentPath "mixed/RiscOS/Sources/Apps/ChangeFSI" #define Module_ComponentPath "mixed/RiscOS/Sources/Apps/ChangeFSI"
#define Module_FullVersion "1.32" #define Module_FullVersion "1.33"
#define Module_HelpVersion "1.32 (11 Aug 2012)" #define Module_HelpVersion "1.33 (27 Aug 2012)"
#define Module_LibraryVersionInfo "1:32" #define Module_LibraryVersionInfo "1:33"
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment