mshtml: Added IHTMLScreen::get_colorDepth implementation.

This commit is contained in:
Jacek Caban 2009-11-30 17:58:16 +01:00 committed by Alexandre Julliard
parent fd24068c8f
commit f8d8fbba46
2 changed files with 11 additions and 2 deletions

View File

@ -127,8 +127,11 @@ static HRESULT WINAPI HTMLScreen_Invoke(IHTMLScreen *iface, DISPID dispIdMember,
static HRESULT WINAPI HTMLScreen_get_colorDepth(IHTMLScreen *iface, LONG *p)
{
HTMLScreen *This = HTMLSCREEN_THIS(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, p);
*p = GetDeviceCaps(get_display_dc(), BITSPIXEL);
return S_OK;
}
static HRESULT WINAPI HTMLScreen_put_bufferDepth(IHTMLScreen *iface, LONG v)

View File

@ -3069,6 +3069,12 @@ static void test_screen(IHTMLWindow2 *window)
ok(hres == S_OK, "get_height failed: %08x\n", hres);
ok(l == exl, "height = %d, expected %d\n", l, exl);
exl = GetDeviceCaps(hdc, BITSPIXEL);
l = 0xdeadbeef;
hres = IHTMLScreen_get_colorDepth(screen, &l);
ok(hres == S_OK, "get_height failed: %08x\n", hres);
ok(l == exl, "height = %d, expected %d\n", l, exl);
DeleteObject(hdc);
IHTMLScreen_Release(screen);