Fix drawing skin with zero width/height (regression in ef1cf22)

This commit is contained in:
Birunthan Mohanathas 2013-06-23 14:21:04 +03:00
parent 13ebeccfd7
commit 6d87614d4c

View File

@ -2723,7 +2723,7 @@ void MeterWindow::UpdateWindow(int alpha, bool reset, bool canvasBeginDrawCalled
BLENDFUNCTION blendPixelFunction = {AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA}; BLENDFUNCTION blendPixelFunction = {AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA};
POINT ptSrc = {0, 0}; POINT ptSrc = {0, 0};
SIZE szWindow = {m_WindowW, m_WindowH}; SIZE szWindow = {m_Canvas->GetW(), m_Canvas->GetH()};
if (!canvasBeginDrawCalled) m_Canvas->BeginDraw(); if (!canvasBeginDrawCalled) m_Canvas->BeginDraw();