Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#4648) how to do wrapping in map_to_canvas_pos?
Home

[Freeciv-Dev] Re: (PR#4648) how to do wrapping in map_to_canvas_pos?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#4648) how to do wrapping in map_to_canvas_pos?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 2003 07:53:32 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:

>>This setup is probably rare and undesrving much attention.  I would
>>recommend, however, in the view of ever-slowing client, to cache the
>>numbers that are recalcualted for every call.  center_map_x,
>>center_map_y, only need to be recalculated when the window is shifted or
>>gets resized, not when we draw each tile.
> 
> Seems reasonable.

Actually, this is a bit tricky since these values can be changed in 
numerous places.  There should be a separate patch to introduce a 
set_mapview_origin() function.

jason




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