Jeff Smith whydoubt@gmail.com wrote:
+#define DATA_WIDTH 2 +#define DATA_HEIGHT 2 +#define MAX_PLANES 64 +#define MAX_BPP 64
static void test_dib_formats(void) { BITMAPINFO *bi;
- char data[256];
- char data[((DATA_WIDTH * MAX_BPP + 31) / 32) * 4 * DATA_HEIGHT * MAX_PLANES];
This makes the test absolutely unreadable. Just adding a comment around char data[2544]; /* enough to hold DIB test data */ would be enough IMO.