Commit eb2a4ec5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/tests: Test default colors of render target memory HDC.

parent 0067be66
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment