Skip to content
Snippets Groups Projects
Commit 6f3b097a authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

parent dbff4f42
No related branches found
No related tags found
No related merge requests found
......@@ -1676,8 +1676,8 @@ static void update_surface_region( struct x11drv_window_surface *surface )
(surface->is_argb && !(bits[x] & 0xff000000)))) x++;
start = x;
while (x < width &&
((bits[x] & 0xffffff) != surface->color_key ||
!(surface->is_argb && !(bits[x] & 0xff000000)))) x++;
!((bits[x] & 0xffffff) == surface->color_key ||
(surface->is_argb && !(bits[x] & 0xff000000)))) x++;
add_row( rgn, data, surface->header.rect.left + start, y, x - start );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment