Nikolay Sivov : uxtheme: Implement GetBufferedPaintDC().
Alexandre Julliard
julliard at winehq.org
Thu Feb 9 15:54:25 CST 2017
Module: wine
Branch: master
Commit: fac941680ee6bbccfd23749337d9302fff648a98
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fac941680ee6bbccfd23749337d9302fff648a98
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Feb 9 01:42:36 2017 +0300
uxtheme: Implement GetBufferedPaintDC().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/uxtheme/buffer.c | 9 ++++++---
dlls/uxtheme/tests/system.c | 1 -
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c
index 9024696..f85761f 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -199,10 +199,13 @@ HRESULT WINAPI GetBufferedPaintBits(HPAINTBUFFER hBufferedPaint, RGBQUAD **ppbBu
/***********************************************************************
* GetBufferedPaintDC (UXTHEME.@)
*/
-HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER hBufferedPaint)
+HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER bufferhandle)
{
- FIXME("Stub (%p)\n", hBufferedPaint);
- return NULL;
+ struct paintbuffer *buffer = get_buffer_obj(bufferhandle);
+
+ TRACE("(%p)\n", buffer);
+
+ return buffer ? buffer->memorydc : NULL;
}
/***********************************************************************
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 66f696b..83e8cde 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -614,7 +614,6 @@ todo_wine
/* access buffer attributes */
hdc = pGetBufferedPaintDC(buffer);
-todo_wine
ok(hdc == src, "Unexpected hdc, %p, buffered dc %p\n", hdc, src);
hdc = pGetBufferedPaintTargetDC(buffer);
More information about the wine-cvs
mailing list