Skip to content

Commit

Permalink
ImageMeter: Fixed removal of 'MaskImageName' via !SetOption.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Aug 1, 2015
1 parent 7473acf commit f175be3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Library/MeterImage.cpp
Expand Up @@ -68,9 +68,8 @@ void MeterImage::LoadImage(const std::wstring& imageName, bool bLoadAlways)
if (m_Image.IsLoaded())
{
bool useMaskSize = false;
if (m_Skin->GetUseD2D() && !m_MaskImageName.empty())
if (m_Skin->GetUseD2D())
{
m_MaskImageNameResult = m_MaskImageName;
m_MaskImage.LoadImage(m_MaskImageName, true);

if (m_MaskImage.IsLoaded()) useMaskSize = true;
Expand Down
1 change: 0 additions & 1 deletion Library/MeterImage.h
Expand Up @@ -60,7 +60,6 @@ class MeterImage : public Meter

TintedImage m_MaskImage;
std::wstring m_MaskImageName;
std::wstring m_MaskImageNameResult;

bool m_NeedsRedraw;
DRAWMODE m_DrawMode;
Expand Down

0 comments on commit f175be3

Please sign in to comment.