From 7d376ed435e8ddabbcbcbc623f1ea9e46bfd3265 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Mon, 11 Jul 2011 12:59:21 +0000 Subject: [PATCH] [win32k] -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 --- subsystems/win32/win32k/objects/bitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsystems/win32/win32k/objects/bitblt.c b/subsystems/win32/win32k/objects/bitblt.c index f4843c2c0b2..a839e83d057 100644 --- a/subsystems/win32/win32k/objects/bitblt.c +++ b/subsystems/win32/win32k/objects/bitblt.c @@ -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");