Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e2f37558
Commit
e2f37558
authored
Feb 22, 2019
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add support for reading nested metafiles.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3c5b7da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
metafile.c
dlls/gdiplus/metafile.c
+33
-0
No files found.
dlls/gdiplus/metafile.c
View file @
e2f37558
...
...
@@ -1817,6 +1817,39 @@ static GpStatus metafile_deserialize_image(const BYTE *record_data, UINT data_si
}
break
;
}
case
ImageDataTypeMetafile
:
{
EmfPlusMetafile
*
metafiledata
=
&
data
->
ImageData
.
metafile
;
if
(
data_size
<=
FIELD_OFFSET
(
EmfPlusMetafile
,
MetafileData
))
return
InvalidParameter
;
data_size
-=
FIELD_OFFSET
(
EmfPlusMetafile
,
MetafileData
);
switch
(
metafiledata
->
Type
)
{
case
MetafileTypeEmf
:
case
MetafileTypeEmfPlusOnly
:
case
MetafileTypeEmfPlusDual
:
{
HENHMETAFILE
hemf
;
hemf
=
SetEnhMetaFileBits
(
data_size
,
metafiledata
->
MetafileData
);
if
(
!
hemf
)
return
GenericError
;
status
=
GdipCreateMetafileFromEmf
(
hemf
,
TRUE
,
(
GpMetafile
**
)
image
);
if
(
status
!=
Ok
)
DeleteEnhMetaFile
(
hemf
);
break
;
}
default:
FIXME
(
"metafile type %d not supported.
\n
"
,
metafiledata
->
Type
);
return
NotImplemented
;
}
break
;
}
default:
FIXME
(
"image type %d not supported.
\n
"
,
data
->
Type
);
return
NotImplemented
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment