summaryrefslogtreecommitdiff
path: root/src/sna/fb/fbbitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/fb/fbbitmap.c')
-rw-r--r--src/sna/fb/fbbitmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/fb/fbbitmap.c b/src/sna/fb/fbbitmap.c
index bba6ea3e..7c037fe3 100644
--- a/src/sna/fb/fbbitmap.c
+++ b/src/sna/fb/fbbitmap.c
@@ -88,9 +88,7 @@ fbBitmapToRegion(PixmapPtr pixmap)
line += stride;
while (y2 < pixmap->drawable.height &&
memcmp(bits, line, width >> 3) == 0 &&
- (maskw == 0 ||
- (bits[width >> (FB_SHIFT - 3)] & maskw) ==
- (line[width >> (FB_SHIFT - 3)] & maskw)))
+ (maskw == 0 || (bits[width >> FB_SHIFT] & maskw) == (line[width >> FB_SHIFT] & maskw)))
line += stride, y2++;
if (READ(bits) & MASK_0)