Nikolay Sivov : uxtheme: Create compatible bitmap using target hdc.
Module: wine Branch: master Commit: 14d81d9eb9cd78206e950446acd06cfe0c96ae4d URL: http://source.winehq.org/git/wine.git/?a=commit;h=14d81d9eb9cd78206e950446ac... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Apr 19 13:30:43 2017 +0300 uxtheme: Create compatible bitmap using target hdc. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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:
participants (1)
-
Alexandre Julliard