Nikolay Sivov : dwrite/tests: Test default colors of render target memory HDC.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 23 09:04:43 CST 2015
Module: wine
Branch: master
Commit: eb2a4ec5f4c39f90c4febc6d5cac0046017c9b3f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb2a4ec5f4c39f90c4febc6d5cac0046017c9b3f
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Feb 20 13:50:22 2015 +0300
dwrite/tests: Test default colors of render target memory HDC.
---
dlls/dwrite/tests/font.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c
index 95ba5aa..532f8df 100644
--- a/dlls/dwrite/tests/font.c
+++ b/dlls/dwrite/tests/font.c
@@ -632,6 +632,7 @@ static void test_CreateBitmapRenderTarget(void)
HBITMAP hbm, hbm2;
DWRITE_MATRIX m;
DIBSECTION ds;
+ COLORREF c;
HRESULT hr;
FLOAT pdip;
SIZE size;
@@ -689,6 +690,14 @@ if (0) /* crashes on native */
hdc = IDWriteBitmapRenderTarget_GetMemoryDC(target);
ok(hdc != NULL, "got %p\n", hdc);
+ /* test context settings */
+ c = GetTextColor(hdc);
+ ok(c == RGB(0, 0, 0), "got 0x%08x\n", c);
+ ret = GetBkMode(hdc);
+ ok(ret == OPAQUE, "got %d\n", ret);
+ c = GetBkColor(hdc);
+ ok(c == RGB(255, 255, 255), "got 0x%08x\n", c);
+
hbm = GetCurrentObject(hdc, OBJ_BITMAP);
ok(hbm != NULL, "got %p\n", hbm);
More information about the wine-cvs
mailing list