Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated image_base to Allacrost v0.1.0 to fix color issues. Also upda…
…ted to libpng15.
- Loading branch information
Socapex
committed
Feb 23, 2013
1 parent
a254ef6
commit 111575c
Showing
3 changed files
with
726 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
111575c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, there is no useful difference in image_base.h. I'll check the cpp file.
111575c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@socapex,
Ok, I've checked both version after reformatting the allacrost one against the new indentation format. The only meaningful change is coming as I thought from the pixel order loaded depending on the computer endianess.
So, could you revert the changes made there, as they break libpng1.5 support for sure, and rather try to tweak the pixel loading order at this very place?
https://github.com/Bertram25/ValyriaTear/blob/master/src/engine/video/image_base.cpp#L106
(between #if SDL_BYTEORDER == SDL_BIG_ENDIAN and #endif)
(I don't know which endianess you have, but it must be the one I can't test, eh ;])
To do that you'll have to test which endianess is used for you and make change in the pixel order, by assigning the dst_pixel[] values until you find the correct combination.
I'll have a look at the luabind differences now.
111575c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have converted this to libpng1.5 (I went through and changed all info_ptr to the png_get* methods). I will definitely revert image_base and work it out with minor changes, this is top priority on my todo list :)
I had also tried BGRA and INT_8_8_8_8_REV etc. But Allacrost uses its own way to load files (instead of the more usual RGBAFormat).