Commit 6f3b097a authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Fix a typo in the surface region computation with an alpha channel.

parent dbff4f42
...@@ -1676,8 +1676,8 @@ static void update_surface_region( struct x11drv_window_surface *surface ) ...@@ -1676,8 +1676,8 @@ static void update_surface_region( struct x11drv_window_surface *surface )
(surface->is_argb && !(bits[x] & 0xff000000)))) x++; (surface->is_argb && !(bits[x] & 0xff000000)))) x++;
start = x; start = x;
while (x < width && while (x < width &&
((bits[x] & 0xffffff) != surface->color_key || !((bits[x] & 0xffffff) == surface->color_key ||
!(surface->is_argb && !(bits[x] & 0xff000000)))) x++; (surface->is_argb && !(bits[x] & 0xff000000)))) x++;
add_row( rgn, data, surface->header.rect.left + start, y, x - start ); add_row( rgn, data, surface->header.rect.left + start, y, x - start );
} }
} }
......
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