[Freeciv-Dev] (PR#7446) center_on_something fails
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7446 >
> [jdorje - Fri Feb 20 01:47:34 2004]:
>
> When you first start a game, the focus unit is put in the top-left of
> the mapview (not the center as it should be).
I can't reproduce this except in the gtk2 client.
I think the problem is that init_mapcanvas_and_overview is being called
too much. I think the mapview is being setup before the call to
init_mapcanvas_and_overview.
But I can't compile the gtk2 client to test it.
The solution is simple. Just remove init_mapcanvas_and_overview. It
doesn't do anything useful. All it does is set some global (e.g.,
already 0) values to 0, and create a stub mapview canvas (but this
mapview canvas should never be used without being properly set up; that
would be an error).
Alternately, just don't call it from the gtk2 client.
jason
- [Freeciv-Dev] (PR#8481) Map not properly centered upon game start, Per I. Mathisen, 2004/04/10
- [Freeciv-Dev] (PR#7446) Re: (PR#8481) Map not properly centered upon game start, Jason Short, 2004/04/10
- [Freeciv-Dev] (PR#7446) center_on_something fails,
Jason Short <=
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
- [Freeciv-Dev] (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/13
|
|