From 2313ae7997875ba49fb9130c4be16a6863419ef4 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Fri, 19 Jan 2007 22:32:35 +0000 Subject: [PATCH] Modified SetValue to do nothing when the value is already set. This seems also be done it BeOS R5 and does remove the constant flickering in the MediaPlayer slider. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19868 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Control.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/interface/Control.cpp b/src/kits/interface/Control.cpp index 1c4185516f..38286b061a 100644 --- a/src/kits/interface/Control.cpp +++ b/src/kits/interface/Control.cpp @@ -298,6 +298,9 @@ BControl::Label() const void BControl::SetValue(int32 value) { + if (value == fValue) + return; + fValue = value; Invalidate(); }