mshtml: Use EqualRect() to compare RECTs.
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
d930b57ded
commit
41992ae38d
|
@ -311,7 +311,7 @@ void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect)
|
|||
|
||||
TRACE("%p %s\n", hwnd, wine_dbgstr_rect(rect));
|
||||
|
||||
if(memcmp(rect, &host->rect, sizeof(RECT))) {
|
||||
if(!EqualRect(rect, &host->rect)) {
|
||||
host->rect = *rect;
|
||||
rect_changed = TRUE;
|
||||
}
|
||||
|
|
|
@ -507,7 +507,7 @@ static HRESULT WINAPI OleDocumentView_SetRect(IOleDocumentView *iface, LPRECT pr
|
|||
|
||||
if(This->doc_obj->hwnd) {
|
||||
GetClientRect(This->doc_obj->hwnd, &rect);
|
||||
if(memcmp(prcView, &rect, sizeof(RECT))) {
|
||||
if(!EqualRect(prcView, &rect)) {
|
||||
InvalidateRect(This->doc_obj->hwnd, NULL, TRUE);
|
||||
SetWindowPos(This->doc_obj->hwnd, NULL, prcView->left, prcView->top, prcView->right,
|
||||
prcView->bottom, SWP_NOZORDER | SWP_NOACTIVATE);
|
||||
|
|
Loading…
Reference in New Issue