Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11260) win32: simplify sprite drawing functions
Home

[Freeciv-Dev] Re: (PR#11260) win32: simplify sprite drawing functions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11260) win32: simplify sprite drawing functions
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 01:54:09 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11260 >

James Canete wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11260 >
> 
> Thanks to the changes in the common drawing code, some of the sprite
> drawing functions in graphics.c have unnecessary parameters.  This patch
> renames two functions, removes parameters, and removes one function.  It
> also fixes a bug where the fog bitmap was not made if the initial
> tileset is non-isometric, which prevents fog from being drawn if the
> tileset is then changes to an isometric set.

You might want to try having a static DC for the mapview, so you don't 
have to reallocate it on each draw.  Citydlgs and other canvases are 
rarer and more numerous so it probably isn't worthwhile there.

jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#11260) win32: simplify sprite drawing functions, Jason Short <=