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
adf53a9c
Commit
adf53a9c
authored
Aug 21, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Add support for pasting EMFs.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbf34a4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
editor.c
dlls/riched20/editor.c
+18
-0
No files found.
dlls/riched20/editor.c
View file @
adf53a9c
...
...
@@ -2241,6 +2241,23 @@ static HRESULT paste_text(ME_TextEditor *editor, FORMATETC *fmt, STGMEDIUM *med)
return
hr
;
}
static
HRESULT
paste_emf
(
ME_TextEditor
*
editor
,
FORMATETC
*
fmt
,
STGMEDIUM
*
med
)
{
HRESULT
hr
;
SIZEL
sz
=
{
0
,
0
};
hr
=
insert_static_object
(
editor
,
med
->
u
.
hEnhMetaFile
,
NULL
,
&
sz
);
if
(
SUCCEEDED
(
hr
))
{
ME_CommitUndo
(
editor
);
ME_UpdateRepaint
(
editor
,
FALSE
);
}
else
ReleaseStgMedium
(
med
);
return
hr
;
}
static
struct
paste_format
{
FORMATETC
fmt
;
...
...
@@ -2250,6 +2267,7 @@ static struct paste_format
{
{{
-
1
,
NULL
,
DVASPECT_CONTENT
,
-
1
,
TYMED_HGLOBAL
},
paste_rtf
,
rtfW
},
{{
CF_UNICODETEXT
,
NULL
,
DVASPECT_CONTENT
,
-
1
,
TYMED_HGLOBAL
},
paste_text
},
{{
CF_ENHMETAFILE
,
NULL
,
DVASPECT_CONTENT
,
-
1
,
TYMED_ENHMF
},
paste_emf
},
{{
0
}}
};
...
...
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