Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement
Home

[Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: andrearo@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 11 Dec 2004 16:02:58 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11433 >

Andreas Røsdal wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11433 >
> 
> On Sat, 11 Dec 2004, Jason Short wrote:
> 
>>It might be possible to get this to work a little more prettily (and
>>have things work, or at least not bomb out, on non-truecolor systems) by
>>using GdkRGB.
> 
> 
> Do you have any pointers for how this should be done with GdkRGB? (How do
> I get a GdkRGB from a pixmap easily, for example? -not obvious from
> the API)

I think you have to find the RGB values of the current image, then use 
GdkRGB to draw the new values.  I suspect this will take care of colors 
better than using GdkImage would (you can specify the dithering method 
for instance).

> If the display doesn't support True Color, then the best thing to do would
> be to fallback to the old method for drawing fog.

Well there are lots of possible values for the "type".  True color may 
not be the only one that works.

-jason





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