From 2e173b69d7933e6e8f54d2d8bdf13e9c470278f9 Mon Sep 17 00:00:00 2001 From: spx Date: Sat, 25 Dec 2010 08:51:44 +0000 Subject: [PATCH] Code cleanup. --- Library/MeterWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 129c5c6a..cefe8a7d 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -247,7 +247,7 @@ int CMeterWindow::Initialize(CRainmeter& Rainmeter) // Gotta have some kind of buffer during initialization m_DoubleBuffer = new Bitmap(1, 1, PixelFormat32bppARGB); - Refresh(true); + Refresh(true, true); if (!m_WindowStartHidden) { if (m_WindowHide == HIDEMODE_FADEOUT) @@ -401,9 +401,9 @@ void CMeterWindow::Refresh(bool init, bool all) UpdateTransparency(m_AlphaValue, true); - if (init || all || oldZPos != m_WindowZPosition) + if (all || oldZPos != m_WindowZPosition) { - ChangeZPos(m_WindowZPosition, init || all); + ChangeZPos(m_WindowZPosition, all); } m_Rainmeter->SetCurrentParser(NULL);