eglaysher / rlvm

RealLive clone for Linux and OSX
http://rlvm.net
GNU General Public License v3.0
150 stars 25 forks source link

Fix compiling with libpng >= 1.5.0 #67

Closed arkbriar closed 8 years ago

arkbriar commented 8 years ago

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.

eglaysher commented 8 years ago

Is this check ported directly from upstream SDL_image? If so, this is an autopull.

arkbriar commented 8 years ago

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.