[PD-dev] bug when redrawing gop within gop inside a closed sub-patch

Mathieu Bouchard matju at artengine.ca
Sun Nov 22 20:38:04 CET 2009


On Sat, 21 Nov 2009, Ivica Ico Bukvic wrote:

> There should be a loop that goes through all existing cords and checks 
> whether they are visible and if so, raises them. Otherwise, they should 
> be ignored.

Why would you need to loop through all existing cords?... I don't 
understand.

You need to perform only one check per canvas. Basically, if 
glist==glist_getcanvas(glist), then a canvas' cords are visible when the 
canvas itself is visible, and if this pd canvas also has a tk canvas, then 
it can tell the tk canvas to raise all_cords and that's all. You don't 
need an explicit loop and you don't benefit from one.

(unless someone found a speed optimisation in the use of tk, but then, it 
would involve more checks than what we're talking about here, and more 
accounting in order to avoid unnecessary refreshes, etc)

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801


More information about the Pd-dev mailing list