gdiplus/tests: Use trace instead of printf.
This commit is contained in:
parent
217faec5f5
commit
d4db49efc2
@ -3223,10 +3223,10 @@ static void test_tiff_properties(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *data = prop_item->value;
|
BYTE *data = prop_item->value;
|
||||||
printf("id %#x:", prop_item->id);
|
trace("id %#x:", prop_item->id);
|
||||||
for (j = 0; j < prop_item->length; j++)
|
for (j = 0; j < prop_item->length; j++)
|
||||||
printf(" %02x", data[j]);
|
trace(" %02x", data[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, prop_item);
|
HeapFree(GetProcessHeap(), 0, prop_item);
|
||||||
@ -3329,10 +3329,10 @@ static void test_GdipGetAllPropertyItems(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *data = prop_item->value;
|
BYTE *data = prop_item->value;
|
||||||
printf("id %#x:", prop_item->id);
|
trace("id %#x:", prop_item->id);
|
||||||
for (j = 0; j < prop_item->length; j++)
|
for (j = 0; j < prop_item->length; j++)
|
||||||
printf(" %02x", data[j]);
|
trace(" %02x", data[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, prop_item);
|
HeapFree(GetProcessHeap(), 0, prop_item);
|
||||||
@ -3391,10 +3391,10 @@ static void test_GdipGetAllPropertyItems(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *data = prop_item[i].value;
|
BYTE *data = prop_item[i].value;
|
||||||
printf("id %#x:", prop_item[i].id);
|
trace("id %#x:", prop_item[i].id);
|
||||||
for (j = 0; j < prop_item[i].length; j++)
|
for (j = 0; j < prop_item[i].length; j++)
|
||||||
printf(" %02x", data[j]);
|
trace(" %02x", data[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
item_data += prop_item[i].length;
|
item_data += prop_item[i].length;
|
||||||
@ -3623,10 +3623,10 @@ static void test_bitmapbits(void)
|
|||||||
if (!match)
|
if (!match)
|
||||||
{
|
{
|
||||||
BYTE *bits = data.Scan0;
|
BYTE *bits = data.Scan0;
|
||||||
printf("%u: data mismatch for format %#x:", i, td[i].format);
|
trace("%u: data mismatch for format %#x:", i, td[i].format);
|
||||||
for (j = 0; j < td[i].size; j++)
|
for (j = 0; j < td[i].size; j++)
|
||||||
printf(" %02x", bits[j]);
|
trace(" %02x", bits[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3654,10 +3654,10 @@ static void test_bitmapbits(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *bits = data.Scan0;
|
BYTE *bits = data.Scan0;
|
||||||
printf("%u: data mismatch for format %#x:", i, td[i].format);
|
trace("%u: data mismatch for format %#x:", i, td[i].format);
|
||||||
for (j = 0; j < 48; j++)
|
for (j = 0; j < 48; j++)
|
||||||
printf(" %02x", bits[j]);
|
trace(" %02x", bits[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3709,8 +3709,8 @@ static void test_DrawImage(void)
|
|||||||
UINT i, size = sizeof(white_2x2);
|
UINT i, size = sizeof(white_2x2);
|
||||||
BYTE *bits = white_2x2;
|
BYTE *bits = white_2x2;
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
printf(" %02x", bits[i]);
|
trace(" %02x", bits[i]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
status = GdipDeleteGraphics(graphics);
|
status = GdipDeleteGraphics(graphics);
|
||||||
@ -3761,8 +3761,8 @@ static void test_GdipDrawImagePointRect(void)
|
|||||||
UINT i, size = sizeof(white_2x2);
|
UINT i, size = sizeof(white_2x2);
|
||||||
BYTE *bits = white_2x2;
|
BYTE *bits = white_2x2;
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
printf(" %02x", bits[i]);
|
trace(" %02x", bits[i]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
status = GdipDeleteGraphics(graphics);
|
status = GdipDeleteGraphics(graphics);
|
||||||
@ -3968,8 +3968,8 @@ static void test_DrawImage_scale(void)
|
|||||||
UINT i, size = sizeof(dst_8x1);
|
UINT i, size = sizeof(dst_8x1);
|
||||||
const BYTE *bits = dst_8x1;
|
const BYTE *bits = dst_8x1;
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
printf(" %02x", bits[i]);
|
trace(" %02x", bits[i]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4094,10 +4094,10 @@ static void test_gif_properties(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *data = prop_item->value;
|
BYTE *data = prop_item->value;
|
||||||
printf("id %#x:", prop_item->id);
|
trace("id %#x:", prop_item->id);
|
||||||
for (j = 0; j < prop_item->length; j++)
|
for (j = 0; j < prop_item->length; j++)
|
||||||
printf(" %02x", data[j]);
|
trace(" %02x", data[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, prop_item);
|
HeapFree(GetProcessHeap(), 0, prop_item);
|
||||||
@ -4156,10 +4156,10 @@ static void test_gif_properties(void)
|
|||||||
{
|
{
|
||||||
UINT j;
|
UINT j;
|
||||||
BYTE *data = prop_item[i].value;
|
BYTE *data = prop_item[i].value;
|
||||||
printf("id %#x:", prop_item[i].id);
|
trace("id %#x:", prop_item[i].id);
|
||||||
for (j = 0; j < prop_item[i].length; j++)
|
for (j = 0; j < prop_item[i].length; j++)
|
||||||
printf(" %02x", data[j]);
|
trace(" %02x", data[j]);
|
||||||
printf("\n");
|
trace("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
item_data += prop_item[i].length;
|
item_data += prop_item[i].length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user