Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7499) problems with detachable panes
Home

[Freeciv-Dev] Re: (PR#7499) problems with detachable panes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7499) problems with detachable panes
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Feb 2004 12:22:50 -0800
Reply-to: rt@xxxxxxxxxxx

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

Vasco Alexandre da Silva Costa wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7499 >
> 
>>[vasc - Tue Feb 24 17:32:02 2004]:
>>
>>I think I know why the bug happens. The code used to draw directly to
>>'overview_canvas->window'. Now you copy the pointer to a struct, and use
>>that pointer. But what if the pointer value in the original
>>'overview_canvas' was changed uh? Yep. Boom!
>>
>>I'm working on a fix.
> 
> 
> Yep, that was the bug allright. Confirmed it with a debug printf. Here
> is a fix.

This fix seems very ugly.  As this code gets used more and more the 
extra dereference will just be annoying.

Is it possible to capture the pane/depane event and change the store 
pointer manually when that happens?

jason




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