Commit a212eba0 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Fix low colour output

  source/ChangeFSI - Fixed a couple of issues that could prevent low colour (i.e. <=256) output from working in some situations:
  - Fixed bug in default palette reading code that would cause it to try and allocate silly amounts of memory depending on the current mode (e.g. FNdim of 0 bytes if loading 16 colour palette while in 32bpp mode)
  - Reworked colour conversion code so that the pixel index and image base pointer are in two seperate registers instead of being in one. The old code had a habit of failing with an "image too complex" error when producing <256 colour output, because (base%<<(3-dest_log2bpp)) could easily overflow a 32bit int, especially when you consider that a dynamic area is used to store the target image.
  Tested on RISC OS 5.21 Iyonix, converting a test image to all the different output colour depths & "special" modes.

Version 1.40. Tagged as 'ChangeFSI-1_40'
parent 9146f67e
/* (1.39)
/* (1.40)
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
#define Module_MajorVersion_CMHG 1.39
#define Module_MajorVersion_CMHG 1.40
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 15 Jul 2013
#define Module_Date_CMHG 11 Aug 2013
#define Module_MajorVersion "1.39"
#define Module_Version 139
#define Module_MajorVersion "1.40"
#define Module_Version 140
#define Module_MinorVersion ""
#define Module_Date "15 Jul 2013"
#define Module_Date "11 Aug 2013"
#define Module_ApplicationDate "15-Jul-13"
#define Module_ApplicationDate "11-Aug-13"
#define Module_ComponentName "ChangeFSI"
#define Module_ComponentPath "mixed/RiscOS/Sources/Apps/ChangeFSI"
#define Module_FullVersion "1.39"
#define Module_HelpVersion "1.39 (15 Jul 2013)"
#define Module_LibraryVersionInfo "1:39"
#define Module_FullVersion "1.40"
#define Module_HelpVersion "1.40 (11 Aug 2013)"
#define Module_LibraryVersionInfo "1:40"
This diff is collapsed.
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