From 71ce46442e2d2d25bc0ee36f1b45db88d624de23 Mon Sep 17 00:00:00 2001 From: mapeki Date: Mon, 18 Oct 2010 22:30:45 +0000 Subject: [PATCH] Fixed an issue with dynamic variables not working on the image effects. --- Library/MeterBar.cpp | 2 +- Library/MeterRotator.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/MeterBar.cpp b/Library/MeterBar.cpp index 87206b7e..a2d01965 100644 --- a/Library/MeterBar.cpp +++ b/Library/MeterBar.cpp @@ -136,7 +136,7 @@ void CMeterBar::ReadConfig(const WCHAR* section) if (m_Initialized) { - if (oldImageName != m_ImageName) + if (oldImageName != m_ImageName || m_NeedsTinting || m_NeedsTransform) { Initialize(); // Reload the image } diff --git a/Library/MeterRotator.cpp b/Library/MeterRotator.cpp index 70902533..120e45dc 100644 --- a/Library/MeterRotator.cpp +++ b/Library/MeterRotator.cpp @@ -113,8 +113,7 @@ void CMeterRotator::ReadConfig(const WCHAR* section) m_ValueRemainder = parser.ReadInt(section, L"ValueReminder", 0); // Typo m_ValueRemainder = parser.ReadInt(section, L"ValueRemainder", m_ValueRemainder); - if (m_Initialized && - oldImageName != m_ImageName) + if (m_Initialized && oldImageName != m_ImageName || m_NeedsTinting || m_NeedsTransform) { Initialize(); // Reload the image }