Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: PNG loading for the Win32 client.
Home

[Freeciv-Dev] Re: PNG loading for the Win32 client.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Andreas Kemnade <akemnade@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: PNG loading for the Win32 client.
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sun, 11 Nov 2001 20:40:29 +0000 (WET)

On Sun, 11 Nov 2001, Andreas Kemnade wrote:

> Vasco Alexandre Da Silva Costa writes:
>  > Hello,
>  > 
>  > I banged a bit in the Win32 client and converted it to load PNGs. It
>  > should read PNGs of any type. It processes them internally as 32bit DIBs
>  > regardless.
>  > To compile this you need cygwin, but you must compile libpng and libz
>  > yourself with -mno-cygwin so the client won't need the cygwin DLL.
>  > 
> Have you tried to running two or three civclients at the same time on 
> win95/win98/winme? Trident/Engels tileset?
> 
> The problem with your patch is the change of the Sprite struct.
> It saves a handle from CreateDibSection. 
> Gdk does the same thing...
> You know the result. You know how ugly I had to patch the gtk client
> for windows.

Oh, the dreaded bitmap limit. I thought it only applied to DDBs not DIBs.
My mistake. I don't have a 16bit GDI OS around to test it on.

> Can you change the patch so that it does not change the struct Sprite,
> please? 

Sure.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa





[Prev in Thread] Current Thread [Next in Thread]