Commit 21c3e79e authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winex11: Correctly pad 1 bpp DDB's lines with 0 values.

parent 66bd3d42
......@@ -1580,7 +1580,6 @@ static void test_GetDIBits(void)
}
/* returned bits are DWORD aligned and upside down */
todo_wine
ok(!memcmp(buf, dib_bits_1, sizeof(dib_bits_1)), "DIB bits don't match\n");
/* Test the palette indices */
......
......@@ -618,8 +618,11 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
}
}
if ((width&7)!=0) {
*dstbyte=dstval;
*dstbyte++=dstval;
}
/* pad with 0 to DWORD alignment */
for (x = (x+7)&~7; x < ((width + 31) & ~31); x+=8)
*dstbyte++ = 0;
dstbits += linebytes;
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment