gdiplus: Store newer gdi+ version in created GdipRegions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4528424661
commit
55453327f5
|
@ -764,7 +764,7 @@ static void write_element(const region_element* element, DWORD *buffer,
|
|||
else
|
||||
pathheader->size += 2 * sizeof(FLOAT) * path->pathdata.Count;
|
||||
pathheader->size += get_pathtypes_size(path);
|
||||
pathheader->magic = VERSION_MAGIC;
|
||||
pathheader->magic = VERSION_MAGIC2;
|
||||
pathheader->count = path->pathdata.Count;
|
||||
|
||||
*filled += 4;
|
||||
|
@ -852,7 +852,7 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
|
|||
region_header = (struct region_header *)buffer;
|
||||
region_header->size = sizeheader_size + get_element_size(®ion->node);
|
||||
region_header->checksum = 0;
|
||||
region_header->magic = VERSION_MAGIC;
|
||||
region_header->magic = VERSION_MAGIC2;
|
||||
region_header->num_children = region->num_children;
|
||||
filled += 4;
|
||||
/* With few exceptions, everything written is DWORD aligned,
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#define expectf_(expected, got, precision) ok(fabs((expected) - (got)) < (precision), "Expected %f, got %f\n", (expected), (got))
|
||||
#define expectf(expected, got) expectf_((expected), (got), 0.001)
|
||||
|
||||
#define expect_magic(value) ok(*(value) == RGNDATA_MAGIC || *(value) == RGNDATA_MAGIC2, "Expected a known magic value, got %8x\n", *(value))
|
||||
#define expect_magic(value) ok(broken(*(value) == RGNDATA_MAGIC) || *(value) == RGNDATA_MAGIC2, "Expected a known magic value, got %8x\n", *(value))
|
||||
#define expect_dword(value, expected) expect((expected), *(value))
|
||||
#define expect_float(value, expected) expectf((expected), *(FLOAT *)(value))
|
||||
|
||||
|
|
Loading…
Reference in New Issue