[Freeciv-Dev] Re: (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 >
Jason Short wrote:
> In short: can you give a reason why this function is needed???
Ahh, the single_tile canvas is also allocated in this function (but well
hidden :-).
Therefore I suggest this patch. Tested under gtk and xaw clients.
jason
? core.5395
Index: client/mapview_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v
retrieving revision 1.99
diff -u -r1.99 mapview_common.c
--- client/mapview_common.c 12 Apr 2004 17:15:06 -0000 1.99
+++ client/mapview_common.c 12 Apr 2004 23:47:23 -0000
@@ -2179,17 +2179,6 @@
**************************************************************************/
void init_mapcanvas_and_overview(void)
{
- mapview_canvas.tile_width = 0;
- mapview_canvas.tile_height = 0;
- mapview_canvas.width = 0;
- mapview_canvas.height = 0;
- mapview_canvas.store = canvas_create(1, 1);
mapview_canvas.single_tile
= canvas_create(UNIT_TILE_WIDTH, UNIT_TILE_HEIGHT);
-
- overview.map_x0 = 0;
- overview.map_y0 = 0;
- overview.width = 0;
- overview.height = 0;
- overview.store = NULL;
}
- [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, 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/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 <=
- [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
- [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, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
|
|