uxtheme: Create compatible bitmap using target hdc.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0344c19692
commit
14d81d9eb9
|
@ -105,7 +105,7 @@ HPAINTBUFFER WINAPI BeginBufferedPaint(HDC targetdc, const RECT *rect,
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
case BPBF_COMPATIBLEBITMAP:
|
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;
|
buffer->bits = NULL;
|
||||||
break;
|
break;
|
||||||
case BPBF_DIB:
|
case BPBF_DIB:
|
||||||
|
|
Loading…
Reference in New Issue