mshtml: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b11b448d72
commit
9cec2e5936
|
@ -124,10 +124,7 @@ static void update_readystate(PluginHost *host)
|
||||||
/* FIXME: We shouldn't need this function and we should embed plugin directly in the main document */
|
/* FIXME: We shouldn't need this function and we should embed plugin directly in the main document */
|
||||||
static void get_pos_rect(PluginHost *host, RECT *ret)
|
static void get_pos_rect(PluginHost *host, RECT *ret)
|
||||||
{
|
{
|
||||||
ret->top = 0;
|
SetRect(ret, 0, 0, host->rect.right - host->rect.left, host->rect.bottom - host->rect.top);
|
||||||
ret->left = 0;
|
|
||||||
ret->bottom = host->rect.bottom - host->rect.top;
|
|
||||||
ret->right = host->rect.right - host->rect.left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void load_prop_bag(PluginHost *host, IPersistPropertyBag *persist_prop_bag)
|
static void load_prop_bag(PluginHost *host, IPersistPropertyBag *persist_prop_bag)
|
||||||
|
|
Loading…
Reference in New Issue