[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]
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
|
|