From de089d8a1c74c50d34df6af8beb46a20060e6374 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 24 Sep 2009 10:18:25 +0000 Subject: [PATCH] Applying patch #10784: eliminate gauge flicker git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gauge95.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index 6f8d8724e4..0c4ddb981c 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -206,6 +206,10 @@ void wxGauge95::SetRange(int r) void wxGauge95::SetValue(int pos) { + // Setting the (same) position produces flicker on Vista, + // especially noticable if ownerdrawn + if (GetValue() == pos) return; + // switch to determinate mode if required SetDeterminateMode();