Chrome picture make strange effects #358

gadesx opened this Issue Nov 20, 2014 · 0 comments


None yet

2 participants

gadesx commented Nov 20, 2014

Problem: the pictures doesn't appear with correct graphics
when you show a picture or move it to another color if
you use the chrome.

test case: start in "TEST cromo color"

@scurest scurest added a commit to scurest/Player that referenced this issue Mar 1, 2015
@scurest scurest Fix #358.
Changes the PNG reader for paletted images to use the index of a
pixel to decide its transparency, rather than its color. This caused
pixels with non-zero index to be transparent if their index's color
happened to be the same as index 0's color.

Unfortunately, the indexed color -> RGBA conversion was being done
in libpng, so EasyRPG never saw the indices to begin with. So it
requires fairly invasive changes. For the sake of symmetry, I pulled
out functions for non-indexed images too. Not very pretty.
@scurest scurest referenced this issue Mar 2, 2015

Fix #358 #430

@fdelapena fdelapena closed this in #430 Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment