[Freeciv-Dev] Re: PNG for freeciv
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Oct 31, 2002 at 11:07:39PM -0500, baumans wrote:
>
> > Jason Dorje Short wrote:
> >
> > I also forgot to mention another "alternative":
> >
> > 5. Find a way to use PNG directly with XAW. This would be in all ways
> > superior, but may not be possible. Any advice would be greatly
> appreciated.
> It seems quite possible to me. As for easy, I have no clue how x pixmaps
> work, but it might be possible to read the png to a regular x pixmap in
> freeciv (if we're lucky) in the file loading function, a relatively
> unintrusive change.
You could do this: convert all XPM's to PNG, making sure that all
PNG's use the same palette (like XPM does); wrote your own PNG2XPM
routine for the Xaw client and convert gfx at runtime into memory
(not disk).
This comes right out of my stomach. I have no real idea about
png and xpm, but since these are lossless formats, it shouldn't
be to hard to do that. Maybe just steal the code from a GNU program.
If you write it yourself (in C), it will be quick, and you don't get
additional dependencies.
I think it is a good idea to reduce the volume of the distribution
this way.
Christian
--
Christian Knoke * * * http://www.enter.de/~c.knoke/
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
|
|