mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
mshtml: Added IHTMLScreen::get_colorDepth implementation.
This commit is contained in:
parent
fd24068c8f
commit
f8d8fbba46
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user