winex11.drv: When copying window bits exclude an update region only if the parent doesn't clip its children.

Alexandre Julliard julliard at winehq.org
Fri Jan 28 05:53:28 CST 2011


Dmitry Timoshkov <dmitry at codeweavers.com> writes:

> @@ -1624,7 +1624,8 @@ static void move_window_bits( struct x11drv_win_data *data, const RECT *old_rect
>          hdc_src = hdc_dst = GetDCEx( data->hwnd, 0, DCX_CACHE );
>      }
>  
> -    ExcludeUpdateRgn( hdc_dst, data->hwnd );
> +    if (!parent || !(GetWindowLongW( parent, GWL_STYLE ) & WS_CLIPCHILDREN))
> +        ExcludeUpdateRgn( hdc_dst, data->hwnd );

I don't see what the parent clipping has to do with this. Could you
please explain?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list