Commit 9cec2e59 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mshtml: Use SetRect() instead of open coding it.

parent b11b448d
...@@ -124,10 +124,7 @@ static void update_readystate(PluginHost *host) ...@@ -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)
......
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