[Freeciv-Dev] (PR#9506) win32: canvas_put_sprite_fogged doesn't work
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#9506) win32: canvas_put_sprite_fogged doesn't work |
From: |
"James Canete" <use_less@xxxxxxxxxxx> |
Date: |
Mon, 26 Jul 2004 01:00:57 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9506 >
> [jdorje - Mon Jul 26 07:03:10 2004]:
>
> Note that this function is called a _lot_ (potentially tens of thousands
> of times for a single update) so if these extra operations are slow this
> value should be stored statically.
>
But statically doesn't work for win32 device contexts, as I have a
limited number of them according to the msdn docs.
I suppose a good solution would be to cache all the sprite accesses and
grab/reserve the DC and draw everything in one fell swoop, freeing the
DC afterwards, but for now I think fixing the game is paramount.
-James Canete
|
|