Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#7446) center_on_something fails
Home

[Freeciv-Dev] (PR#7446) center_on_something fails

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#7446) center_on_something fails
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 2004 15:08:38 -0700
Reply-to: rt@xxxxxxxxxxx

<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



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