On Saturday 30 July 2005 19:50, Chris Cannam wrote: > > That guarantees we're looking up a valid vector element, except in one > case -- when the vector is empty. The old code has an explicit check > for this, the new code doesn't.
Check added. > > I did this because calling repaint() for every preview was causing > > too much flicker, so I ended up calling it only when the preview > > queue was emptied. However now that it seems calling update() works, > > I can get the old behavior back if you prefer. > > Yes, I prefer -- AudioPreviewThread is clever enough to try to do > smaller previews first, precisely to accommodate incremental refresh. Change done (and I just happened to properly read the 1-line long doc of repaint() to learn that it does erase prior to repainting, and that passing it 'false' will counter that. Duh.) So no flicker, nice updates. -- Guillaume. http://www.telegraph-road.org ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
