[Freeciv-Dev] Suggestion for sprite drawing in the gtk clients
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi,
Here is a suggestion which should speedup the map drawing in the gtk clients,
I think drawing on X will not be negatively affected.
The key is gdk_gc_set_function()
To draw a sprite
1. set the function to XOR
2. draw the pixmap
3. set the function to AND
4. draw the mask
5. set the function to XOR again
6. draw the pixmap again.
Greetings
Andreas Kemnade
PS: I cannot test that on win32.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Suggestion for sprite drawing in the gtk clients,
Andreas Kemnade <=
|
|