Nikolay Sivov : uxtheme: Create compatible bitmap using target hdc.
Alexandre Julliard
julliard at winehq.org
Wed Apr 19 14:49:39 CDT 2017
Module: wine
Branch: master
Commit: 14d81d9eb9cd78206e950446acd06cfe0c96ae4d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=14d81d9eb9cd78206e950446acd06cfe0c96ae4d
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Apr 19 13:30:43 2017 +0300
uxtheme: Create compatible bitmap using target hdc.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/uxtheme/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c
index ce1fc9f..17bdf3d 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -105,7 +105,7 @@ HPAINTBUFFER WINAPI BeginBufferedPaint(HDC targetdc, const RECT *rect,
switch (format)
{
case BPBF_COMPATIBLEBITMAP:
- hbm = CreateCompatibleBitmap(buffer->memorydc, rect->right - rect->left, rect->bottom - rect->top);
+ hbm = CreateCompatibleBitmap(targetdc, rect->right - rect->left, rect->bottom - rect->top);
buffer->bits = NULL;
break;
case BPBF_DIB:
More information about the wine-cvs
mailing list