Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11174) client segfaults w/o map_canvas_resized()
Home

[Freeciv-Dev] Re: (PR#11174) client segfaults w/o map_canvas_resized()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11174) client segfaults w/o map_canvas_resized()
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Fri, 26 Nov 2004 11:40:33 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11174 >

On Tue, Nov 23, 2004 at 10:35:05PM -0800, Jason Short wrote:
> init_mapcanvas_and_overview() would be a good candidate for this I

Hmm, I guess I should've paid more attention to what you said before
replying.  I didn't dare create a 0x0 pixmap, so I arbitrarily chose
20x20 -- adjust to your tastes.


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=

--- freeciv/client/mapview_common.c.orig        2004-11-26 14:17:21.000000000 
-0500
+++ freeciv/client/mapview_common.c     2004-11-26 14:36:44.000000000 -0500
@@ -2562,4 +2562,6 @@
 **************************************************************************/
 void init_mapcanvas_and_overview(void)
 {
+  /* Create a dummy map to make sure mapview_canvas.store is never NULL */
+  map_canvas_resized(20, 20);
 }

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