[haiku-commits] Re: haiku: hrev51503 - src/apps/deskbar

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 30 Oct 2017 14:33:32 -0400

On Mon, Oct 30, 2017 at 2:16 PM, John Scipione <jscipione@xxxxxxxxx> wrote:

Can somebody explain why updateRect was wrong size here when the menu closes?

Without more context on the problem, it's hard to answer that for
sure, but you can't assume that the update rect is the same size as
the view. If the menu only overlapped part of the view before it was
closed, the update rect you get will only cover the part that needs to
be redrawn, and that's standard behavior for the rect passed to any
call to BView::Draw(), so that views can intelligently redraw only the
portion that actually needs it.

Regards,

Rene

Other related posts: