Fixed #6298: Mask CACHED_BRUSH when checking brush style

This commit is contained in:
Armin Novak 2020-06-23 09:24:35 +02:00
parent f3fc2b7096
commit ce1a9d8d19

View File

@ -139,7 +139,8 @@ static BYTE get_bmf_bpp(UINT32 bmf, BOOL* pValid)
{
if (pValid)
*pValid = TRUE;
switch (bmf)
/* Mask out highest bit */
switch (bmf & (~CACHED_BRUSH))
{
case 1:
return 1;