[ scummvm-Patches-896434 ] EGA palette range correction

SourceForge.net noreply at sourceforge.net
Fri Feb 13 12:23:49 CET 2004


Patches item #896434, was opened at 2004-02-13 11:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=896434&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Gevaryahu (lord_nightmare)
Assigned to: Nobody/Anonymous (nobody)
Summary: EGA palette range correction

Initial Comment:
This fixes the EGA palette so that the low two bits are
not always 0 for each Red, Green, and Blue element.
The reason that the current values are that way is
because someone transscribed the standard IBM
VGA-equivalents-of-EGA-pallete (which is
6-bits-per-color-channel) and didn't adjust the range
when converting them to 8-bit values. [they only did
(val << 2) instead of ((val << 2) | (val >> 4))] So,
instead of 0x2A, 0x15, and 0x3F ending up as 0xAA,
0x55, 0xFF, they ended up as 0xA8, 0x54, and 0xFC. This
patch fixes that. I can't think of any regressions this
could possibly cause.

Jonathan Gevaryahu (AKA Lord Nightmare)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=896434&group_id=37116




More information about the Scummvm-tracker mailing list