Turn off the optimization to skip calling Flush() when an invalidate request

was already sent by this or another view. This was already the case for the
BRect version of Invalidate(), but was forgotten in the BRegion version. I
just had an idea what the problem could be, but I think it's bogus. Needs some
investigation. Should fix ticket #4119 for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31734 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-07-24 15:44:15 +00:00
parent a5339f65c3
commit 1b98cebd7a

View File

@ -3707,8 +3707,9 @@ BView::Invalidate(BRect invalRect)
fOwner->fLink->Flush();
fOwner->fUpdateRequested = true;
}
#endif
#else
fOwner->fLink->Flush();
#endif
}
@ -3723,10 +3724,15 @@ BView::Invalidate(const BRegion* region)
fOwner->fLink->StartMessage(AS_VIEW_INVALIDATE_REGION);
fOwner->fLink->AttachRegion(*region);
// TODO: See above.
#if 0
if (!fOwner->fUpdateRequested) {
fOwner->fLink->Flush();
fOwner->fUpdateRequested = true;
}
#else
fOwner->fLink->Flush();
#endif
}