[Freeciv-Dev] PATCH: Allowing PNGs under GTK
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> This patch enables the ability to use pngs for the gtk client. Amazingly
> enough, the code to check if the system had libpng was longer (by about 9
> times) than the code to actually enable its use. This is still somewhat of
> a hack. Next: PNG support for every other client.
You cannot rely on being able to link against -lpng if png is
supported. AFAIK we don't need to add -lpng because gdk_imlib handles
it. Just add the png format in client/gui-gtk/graphics.c should be
enough. (And perhaps runtime checks).