projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync with trunk r46493
[reactos.git]
/
dll
/
win32
/
gdiplus
/
image.c
diff --git
a/dll/win32/gdiplus/image.c
b/dll/win32/gdiplus/image.c
index
d72d4cf
..
58f3c65
100644
(file)
--- a/
dll/win32/gdiplus/image.c
+++ b/
dll/win32/gdiplus/image.c
@@
-2108,6
+2108,8
@@
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromMetafile(GpMetafile * metafile,
if(!(calls++))
FIXME("not implemented\n");
if(!(calls++))
FIXME("not implemented\n");
+ memset(header, 0, sizeof(MetafileHeader));
+
return Ok;
}
return Ok;
}
@@
-2194,6
+2196,7
@@
struct image_format_dimension image_format_dimensions[] =
{NULL}
};
{NULL}
};
+/* FIXME: Need to handle multi-framed images */
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
GDIPCONST GUID* dimensionID, UINT* count)
{
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
GDIPCONST GUID* dimensionID, UINT* count)
{
@@
-2201,13
+2204,15
@@
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
TRACE("(%p,%s,%p)\n", image, debugstr_guid(dimensionID), count);
TRACE("(%p,%s,%p)\n", image, debugstr_guid(dimensionID), count);
- if(!image || !
dimensionID || !
count)
+ if(!image || !count)
return InvalidParameter;
if(!(calls++))
return InvalidParameter;
if(!(calls++))
- FIXME("
not implemented
\n");
+ FIXME("
returning frame count of 1
\n");
- return NotImplemented;
+ *count = 1;
+
+ return Ok;
}
GpStatus WINGDIPAPI GdipImageGetFrameDimensionsCount(GpImage *image,
}
GpStatus WINGDIPAPI GdipImageGetFrameDimensionsCount(GpImage *image,