From: Jerome St-Louis Date: Mon, 2 Feb 2015 04:38:57 +0000 (-0500) Subject: gui/drivers/Win32Interface: Fixed hangs on alpha-blended windows X-Git-Tag: 0.44.11~10 X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f0268caf40862299633f60442d4cc8797b4e46;p=sdk gui/drivers/Win32Interface: Fixed hangs on alpha-blended windows --- diff --git a/ecere/src/gui/drivers/Win32Interface.ec b/ecere/src/gui/drivers/Win32Interface.ec index ffc8128..b2ffe77 100644 --- a/ecere/src/gui/drivers/Win32Interface.ec +++ b/ecere/src/gui/drivers/Win32Interface.ec @@ -584,9 +584,9 @@ class Win32Interface : Interface break; case WM_PAINT: { + PAINTSTRUCT ps; if(!window.alphaBlend || window.display.pixelFormat != pixelFormat888) { - PAINTSTRUCT ps; /* #define ACCESS_ITEM(l, id) \ @@ -622,6 +622,11 @@ class Win32Interface : Interface // window.UpdateDirty((Box *)&ps.rcPaint); EndPaint(windowHandle, &ps); } + else + { + BeginPaint(windowHandle, &ps); + EndPaint(windowHandle, &ps); + } break; } case WM_DISPLAYCHANGE: