Nikolay Sivov nsivov@codeweavers.com wrote:
- hdc = GetDC(0);
- hfont = CreateFontIndirectA(lf);
- ok(hfont != NULL, "failed to create a font\n");
- hfont_old = SelectObject(hdc, hfont);
Please avoid using GetDC(0) for all kinds of graphics tests, this may lead (inadvertently) to graphics artifacts because it's basically an eqivalent of CreateDC("display"). I'd suggest to use CreateCompatibleDC(0) instead, and create a dedicated window if painting is really desired.