mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 08:15:36 +00:00
winex11: Fix a typo in the surface region computation with an alpha channel.
This commit is contained in:
parent
dbff4f422c
commit
6f3b097a20
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user