[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [PATCH 1/2] mshtml: Added IHTMLScreen::get_availHeight
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2011-05-27 12:32:11
Message-ID: 87d3j4tjck.fsf () wine ! dyndns ! org
[Download RAW message or body]
Jacek Caban <jacek@codeweavers.com> writes:
> @@ -186,8 +186,15 @@ static HRESULT WINAPI HTMLScreen_get_updateInterval(IHTMLScreen *iface, LONG *p)
> static HRESULT WINAPI HTMLScreen_get_availHeight(IHTMLScreen *iface, LONG *p)
> {
> HTMLScreen *This = impl_from_IHTMLScreen(iface);
> - FIXME("(%p)->(%p)\n", This, p);
> - return E_NOTIMPL;
> + RECT work_area;
> +
> + TRACE("(%p)->(%p)\n", This, p);
> +
> + if(!SystemParametersInfoW(SPI_GETWORKAREA, 0, &work_area, 0))
> + return E_FAIL;
> +
> + *p = work_area.bottom;
You probably want work_area.bottom - work_area.top.
--
Alexandre Julliard
julliard@winehq.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic