Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7385) overview isn't updated
Home

[Freeciv-Dev] Re: (PR#7385) overview isn't updated

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7385) overview isn't updated
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Feb 2004 22:59:20 -0800
Reply-to: rt@xxxxxxxxxxx

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

Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7385 >
> 
> On Mon, Feb 09, 2004 at 02:08:27AM -0800, Raimar Falke wrote:
> 
>>Alternative suggestions:
>> - a flag which is set every time the overview (backing store) is
>> updated and cleared when the backing store is copied to the screen
> 
> 
> Untested patch for this attached.

A workable concept.  But it won't work for recentering the map (no 
dirtying), and possibly not for expose events either (although these do 
seem to work).

I'd do the interface a bit differently:

   dirty_overview() => sets dirty flag
     (or queue_overview_redraw())

   flush_dirty_overview() => checks dirty flag, calls redraw
     (or unqueue_overview_redraw())

   redraw_overview => doesn't check dirty flag

flush_dirty_overview() can be called from inside unqueue_mapview_updates().

In future the queue and dirty systems should be merged, though I'm not 
quite sure how to do this.

jason




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