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
This commit is contained in:
spx 2010-11-04 22:17:08 +00:00
parent 32d81e9343
commit bfdc8d2d74

View File

@ -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);