[Freeciv-Dev] Re: loading compressed XPM files
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Sep 17, 2001 at 10:04:04PM +0200, Andreas Kemnade wrote:
> Benoit Hudson writes:
> > On Mon, Sep 17, 2001 at 10:16:49AM +0200, Raimar Falke wrote:
> > > So the user is lost if freeciv is shipped with compressed xpms and the
> > > user doesn't have libz?! We have to make libz a prerequisite.
> >
> > Ship with non-compressed; if --with-zlib is specified, compress.
>
> Don't make the thing so complex. gdk_imlib is quite intelligent. It can
> search for the dynamic library which can handle the desired format. If it
> does not find one, it tries to use ImageMagick. You can even convert the
> stuff to e.g. png. Then you can change the suffix back to xpm and freeciv
> will load it (if imlib find its libimlib-png.so) You don't need to touch
> the source! The only thing you might change is the list of supported gfx
> formats in the gtk client.
Turns out gzipped XPM is smaller than png, and easier to create ; but
unfortunately imlib can't load it (it says "assertion failed" a lot).
Anyway; I can live with not making this a mainline patch, if the set of
users who this helps is pretty small.
-- Benoît
|
|