mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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:
parent
32d81e9343
commit
bfdc8d2d74
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user