[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]
<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
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, (continued)
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, email_address=jdorje@xxxxxxxxxxx, 2004/12/09
- [Freeciv-Dev] (PR#11433) Fog of War rendering improvement, Jason Short, 2004/12/09
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Andreas Røsdal, 2004/12/10
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Vasco Alexandre da Silva Costa, 2004/12/10
- [Freeciv-Dev] (PR#11433) Fog of War rendering improvement, Jason Short, 2004/12/10
- [Freeciv-Dev] (PR#11433) Fog of War rendering improvement, Jason Short, 2004/12/10
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Andreas Røsdal, 2004/12/11
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Jason Short, 2004/12/11
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Jason Short, 2004/12/11
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Andreas Røsdal, 2004/12/11
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement,
Jason Short <=
- [Freeciv-Dev] Re: (PR#11433) Fog of War rendering improvement, Andreas Røsdal, 2004/12/12
|
|