From fc42e98226f37b1b32bd9b34ca6fc7d06c9f0c27 Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 15 Dec 2010 09:01:04 +0000 Subject: [PATCH] (svn r21523) -Fix: Some windows were not updated correctly after a train acceleration model change. --- src/settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 1834fe72d1..964631f5de 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -809,6 +809,11 @@ static bool TrainAccelerationModelChanged(int32 p1) } } + /* These windows show acceleration values only when realistic acceleration is on. They must be redrawn after a setting change. */ + SetWindowClassesDirty(WC_ENGINE_PREVIEW); + InvalidateWindowClassesData(WC_BUILD_VEHICLE, 0); + SetWindowClassesDirty(WC_VEHICLE_DETAILS); + return true; }