From 6d87614d4cd912acc87b0869fb2f81e692218c21 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 23 Jun 2013 14:21:04 +0300 Subject: [PATCH] Fix drawing skin with zero width/height (regression in ef1cf22) --- Library/MeterWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index fe4cff2e..724c6cb1 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -2723,7 +2723,7 @@ void MeterWindow::UpdateWindow(int alpha, bool reset, bool canvasBeginDrawCalled BLENDFUNCTION blendPixelFunction = {AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA}; POINT ptSrc = {0, 0}; - SIZE szWindow = {m_WindowW, m_WindowH}; + SIZE szWindow = {m_Canvas->GetW(), m_Canvas->GetH()}; if (!canvasBeginDrawCalled) m_Canvas->BeginDraw();