Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8627) best overview for iso-maps
Home

[Freeciv-Dev] Re: (PR#8627) best overview for iso-maps

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8627) best overview for iso-maps
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 May 2004 06:17:43 -0700
Reply-to: rt@xxxxxxxxxxx

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

Marcelo Burda wrote:

>>2.  I can still get a crash with topology==4 in the gtk client (but not
>>the gtk2 client AFAIK) if I click on the right side of the overview.
>>
>>#5  0x40519b3f in *__GI___assert_fail (assertion=0x0, file=0x0, line=0,
>>    function=0x81321d4 "overview_to_map_pos") at assert.c:83
>>#6  0x0807c98e in overview_to_map_pos (map_x=0xbffff29c, map_y=0xbffff2a0,
>>    overview_x=160, overview_y=42)
>>    at ../../freeciv/client/mapview_common.c:2078
>>#7  0x080b512b in butt_down_overviewcanvas (w=0x834fef0, ev=0x8376eb0)
>>    at ../../../freeciv/client/gui-gtk/mapctrl.c:372
>>
>>I believe the error is in set_overview_dimensions.  You clip
>>OVERVIEW_TILE_SIZE pixels from the left of the overview but not from the
>>right.  This line:
>>
>>+  overview.width = OVERVIEW_TILE_WIDTH * width + shift;
>>
>>should use 2*shift.  I think.
> 
> i find this bug yesterday, testing mapgen code in gtk1. the problem is
> not there you think,
> i think gtk 1 send overview event from a windows larger than seted, this
> event are interpreted as overview pos larger than desired. the window
> was firt seted to paint the logo, then reseting it not work fine.
> 
> I not understan why gtk1 make this. is the seting windows code well
> done?
> 
> i can solve this type of problems whit not finding the real porblem
> returning a boolean.

I'm still pretty sure you need to use 2*shift.

However I can get this assertion to trigger with current CVS code and 
topology==0.  So obviously there's something else going wrong.

Tell me again why you don't want to return a boolean?

jason




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