[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] NetSurf menu redraw / was: Menu redraw
On Sat, 2013-04-13 at 17:06 +0200, Helmut Karlowski wrote:
> After my experience the rectangles from WM_REDRAW are not always reliable
> (not sure about XaAES, and not sure at all), so you'll always have to clip
> according to the rectangle-list before doing any drawing.
That's the correct way to do it regardless of which AES you use. The
dirty rectangle sent with WM_REDRAW is the actual dirty rectangle, not
the dirty rectangle(s) in the window's work area.
This also applies to the top window! Don't ever use "clever" tricks
just_redraw(); // Why? You only save a single wind_get() in most
This will break. Having an "always on top" window on the screen is
enough to cause problems. Also, I'm not sure what the top window is when
a menu is open. Is it the menu or the top window?