-Add a hack to GreStretchBltMask to return TRUE when a dimension is 0. After some investigation it seems that windows returns TRUE in such a case but couldn't investigate more if this change is really correct. This hack is needed because a drawing operation in uxtheme is aborted when StretchBlt returns FALSE

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52631
This commit is contained in:
Giannis Adamopoulos 2011-07-11 12:59:21 +00:00
parent 29e5fe2299
commit 7d376ed435

View file

@ -660,7 +660,7 @@ GreStretchBltMask(
if (0 == WidthDest || 0 == HeightDest || 0 == WidthSrc || 0 == HeightSrc)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
return TRUE;
}
DPRINT("Locking DCs\n");