mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 21:04:06 +00:00
uxtheme: Implement GetBufferedPaintBits().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
89fe0a3f26
commit
b557cb42eb
2 changed files with 16 additions and 6 deletions
|
@ -189,11 +189,22 @@ HRESULT WINAPI BufferedPaintSetAlpha(HPAINTBUFFER hBufferedPaint, const RECT *pr
|
|||
/***********************************************************************
|
||||
* GetBufferedPaintBits (UXTHEME.@)
|
||||
*/
|
||||
HRESULT WINAPI GetBufferedPaintBits(HPAINTBUFFER hBufferedPaint, RGBQUAD **ppbBuffer,
|
||||
int *pcxRow)
|
||||
HRESULT WINAPI GetBufferedPaintBits(HPAINTBUFFER bufferhandle, RGBQUAD **bits, int *width)
|
||||
{
|
||||
FIXME("Stub (%p %p %p)\n", hBufferedPaint, ppbBuffer, pcxRow);
|
||||
return E_NOTIMPL;
|
||||
struct paintbuffer *buffer = get_buffer_obj(bufferhandle);
|
||||
|
||||
TRACE("(%p %p %p)\n", buffer, bits, width);
|
||||
|
||||
if (!bits || !width)
|
||||
return E_POINTER;
|
||||
|
||||
if (!buffer || !buffer->bits)
|
||||
return E_FAIL;
|
||||
|
||||
*bits = buffer->bits;
|
||||
*width = buffer->rect.right - buffer->rect.left;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -648,7 +648,6 @@ todo_wine
|
|||
bits = NULL;
|
||||
row = 0;
|
||||
hr = pGetBufferedPaintBits(buffer, &bits, &row);
|
||||
todo_wine {
|
||||
if (format == BPBF_COMPATIBLEBITMAP)
|
||||
ok(hr == E_FAIL, "Unexpected return code %#x\n", hr);
|
||||
else
|
||||
|
@ -657,7 +656,7 @@ todo_wine {
|
|||
ok(bits != NULL, "Bitmap bits %p\n", bits);
|
||||
ok(row > 0, "Bitmap width %d\n", row);
|
||||
}
|
||||
}
|
||||
|
||||
hr = pEndBufferedPaint(buffer, FALSE);
|
||||
ok(hr == S_OK, "Unexpected return code %#x\n", hr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue