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

This commit is contained in:
Alexandre Julliard 2012-10-03 00:09:01 +02:00
parent dbff4f422c
commit 6f3b097a20
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
}