Edit colors on images with adaptive palettes.
authorPaul Gilbert <dreammaster@scummvm.org>
Fri, 13 Sep 2019 19:15:20 +0000 (12:15 -0700)
committerDavid Griffith <dave@661.org>
Fri, 13 Sep 2019 19:52:10 +0000 (12:52 -0700)
commit60ccf14d12b8cb511311cafa124c555dc17c45fb
treef5104f2f64c1bde8610e42a44b872718f40fd490
parentd45b44454cac971b730e7d2e8e61f5b8817291ae
Edit colors on images with adaptive palettes.

In Zork Zero and Arthur, some images have no palettes of their own.
These change their colors according to images plotted before.  Kevin
Bracy called these "adaptive palette pictures".  To deal with them, he
proposed an extension to the Blorb standard to add an "APal" chunk which
lists the images that have adaptive palettes.  The changes in this
commit make sfrotz read that chunk and then rewrite the palettes of
listed images when they are loaded.

This is described in much greater detail in
http://ifarchive.org/if-archive/programming/blorb/blorb-infocom-extension.txt

The work to correctly implement processing of adaptive palettes was done by Paul
Gilbert <dreammaster@scummvm.org>.  I, David Griffith, condensed what would have been
an irritatingly messy merge into a single commit and did general cleanup before
committing Paul's changes using his name.
src/sdl/sf_frotz.h
src/sdl/sf_images.c
src/sdl/sf_resource.c
src/sdl/sf_video.c