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

This commit is contained in:
Nikolay Sivov 2015-02-20 13:50:22 +03:00 committed by Alexandre Julliard
parent 0067be66bb
commit eb2a4ec5f4
1 changed files with 9 additions and 0 deletions

View File

@ -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);