Alexandre Julliard : winex11: Fix a typo in the surface region computation with an alpha channel.
Alexandre Julliard
julliard at winehq.org
Wed Oct 3 13:20:34 CDT 2012
Module: wine
Branch: master
Commit: 6f3b097a203d9ca248732cb45eed462599ca3af1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f3b097a203d9ca248732cb45eed462599ca3af1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 3 00:09:01 2012 +0200
winex11: Fix a typo in the surface region computation with an alpha channel.
---
dlls/winex11.drv/bitblt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c
index ceecb0c..36e3ac9 100644
--- a/dlls/winex11.drv/bitblt.c
+++ b/dlls/winex11.drv/bitblt.c
@@ -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 );
}
}
More information about the wine-cvs
mailing list