From bfdc8d2d74b5bd205d9f4e884c79b82ec0c6cb89 Mon Sep 17 00:00:00 2001 From: spx Date: Thu, 4 Nov 2010 22:17:08 +0000 Subject: [PATCH] Fixed an issue that skin window doesn't work correctly if DynamicWindowSize=1 is set and window width or height is 0. http://www.rainmeter.net/forum/viewtopic.php?f=5&t=5895&sid=3a35544c846def97be471944c564e12d --- Library/MeterWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index c59c08a5..77232aa6 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -2362,7 +2362,7 @@ void CMeterWindow::Redraw() } if (m_DoubleBuffer) delete m_DoubleBuffer; - if (m_WindowW == 0 && m_WindowH == 0) + if (m_WindowW == 0 || m_WindowH == 0) { // Create a dummy bitmap to avoid invalid state m_DoubleBuffer = new Bitmap(1, 1, PixelFormat32bppARGB);