Chrome picture make strange effects #358

Closed
gadesx opened this Issue Nov 20, 2014 · 0 comments

Projects

None yet

2 participants

@gadesx
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.
2

test case: start in "TEST cromo color"
http://dl.dropboxusercontent.com/u/22524283/temporal/Tests%20varios.rar

@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.
e72fe47
@scurest scurest referenced this issue Mar 2, 2015
Merged

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