Commit f8d8fbba authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLScreen::get_colorDepth implementation.

parent fd24068c
......@@ -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)
......
......@@ -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);
......
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