Re: [2/2] server: Make sure that region and rectangle have the same origin before calling rect_in_region().
5 Jun
2012
5 Jun
'12
3:32 p.m.
Dmitry Timoshkov <dmitry(a)baikal.ru> writes:
@@ -2457,7 +2457,9 @@ DECL_HANDLER(update_window_zorder) if (!(ptr->style & WS_VISIBLE)) continue; if (ptr->ex_style & WS_EX_TRANSPARENT) continue; if (!intersect_rect( &tmp, &ptr->visible_rect, &rect )) continue; - if (ptr->win_region && !rect_in_region( ptr->win_region, &rect )) continue; + tmp = rect; + offset_rect( &tmp, -ptr->client_rect.left, -ptr->client_rect.top ); + if (ptr->win_region && !rect_in_region( ptr->win_region, &tmp )) continue;
The window region is not in client coordinates. -- Alexandre Julliard julliard(a)winehq.org
4940
Age (days ago)
4940
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard