sna: Fix reversal of inside logic for BitmapToRegion

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-09 11:25:11 +01:00
parent 8a9a17cd09
commit 8066bc33d7
1 changed files with 2 additions and 2 deletions

View File

@ -90,10 +90,10 @@ fbBitmapToRegion(PixmapPtr pixmap)
for (base = 0; bits < end; base += FB_UNIT) {
FbBits w = READ(bits++);
if (x1 < 0) {
if (!~w)
if (!w)
continue;
} else {
if (!w)
if (!~w)
continue;
}
for (i = 0; i < FB_UNIT; i++) {