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:
Michael Stefaniuc 2016-07-12 10:08:52 +02:00 committed by Alexandre Julliard
parent b11b448d72
commit 9cec2e5936
1 changed files with 1 additions and 4 deletions

View File

@ -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)