Closed arkbriar closed 8 years ago
Is this check ported directly from upstream SDL_image? If so, this is an autopull.
No. This patch is based on my understanding of libpng. The check has made in the upstream SDL_image. Thus an upgrade of SDL is recommended.
I'm sorry I have created a meaningless PR. I even found some mistakes in my patch after checking the codes of SDL_image 1.2.12
Please excuse my poor English.
Use png_get functions instead of making direct access to the members of png_struct and info_struct. Provide functions to emulate missing png_get when compiling with versions under 1.5.0.
Successfully compiled on my openSUSE tumbleweed. Testing with clannad full voice[original] and everything's good so far.