From 1b98cebd7ac192a49343cd62f63295ae8ddc23c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 24 Jul 2009 15:44:15 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index fe3094c991..31a006d586 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -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 }