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
53089bff
Commit
53089bff
authored
Nov 22, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Synthesize CF_ENHMETAFILE from CF_METAFILEPICT.
parent
29236cce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
clipboard.c
dlls/winemac.drv/clipboard.c
+27
-1
No files found.
dlls/winemac.drv/clipboard.c
View file @
53089bff
...
...
@@ -74,6 +74,7 @@ static HANDLE import_bmp_to_bitmap(CFDataRef data);
static
HANDLE
import_bmp_to_dib
(
CFDataRef
data
);
static
HANDLE
import_enhmetafile
(
CFDataRef
data
);
static
HANDLE
import_metafilepict
(
CFDataRef
data
);
static
HANDLE
import_metafilepict_to_enhmetafile
(
CFDataRef
data
);
static
HANDLE
import_nsfilenames_to_hdrop
(
CFDataRef
data
);
static
HANDLE
import_oemtext_to_text
(
CFDataRef
data
);
static
HANDLE
import_oemtext_to_unicodetext
(
CFDataRef
data
);
...
...
@@ -200,7 +201,9 @@ static const struct
{
CF_HDROP
,
CFSTR
(
"NSFilenamesPboardType"
),
import_nsfilenames_to_hdrop
,
export_hdrop_to_filenames
,
TRUE
},
{
CF_ENHMETAFILE
,
CFSTR
(
"org.winehq.builtin.enhmetafile"
),
import_enhmetafile
,
export_enhmetafile
,
FALSE
},
{
CF_METAFILEPICT
,
CFSTR
(
"org.winehq.builtin.metafilepict"
),
import_metafilepict
,
export_metafilepict
,
FALSE
},
{
CF_METAFILEPICT
,
CFSTR
(
"org.winehq.builtin.metafilepict"
),
import_metafilepict
,
export_metafilepict
,
FALSE
},
{
CF_ENHMETAFILE
,
CFSTR
(
"org.winehq.builtin.metafilepict"
),
import_metafilepict_to_enhmetafile
,
NULL
,
TRUE
},
};
static
const
WCHAR
wszRichTextFormat
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
' '
,
'T'
,
'e'
,
'x'
,
't'
,
' '
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
0
};
...
...
@@ -724,6 +727,29 @@ static HANDLE import_metafilepict(CFDataRef data)
/**************************************************************************
* import_metafilepict_to_enhmetafile
*
* Import metafile picture data, converting it to CF_ENHMETAFILE.
*/
static
HANDLE
import_metafilepict_to_enhmetafile
(
CFDataRef
data
)
{
HANDLE
ret
=
0
;
CFIndex
len
=
CFDataGetLength
(
data
);
const
METAFILEPICT
*
mfp
;
TRACE
(
"data %s
\n
"
,
debugstr_cf
(
data
));
if
(
len
>=
sizeof
(
*
mfp
))
{
mfp
=
(
const
METAFILEPICT
*
)
CFDataGetBytePtr
(
data
);
ret
=
SetWinMetaFileBits
(
len
-
sizeof
(
*
mfp
),
(
const
BYTE
*
)(
mfp
+
1
),
NULL
,
mfp
);
}
return
ret
;
}
/**************************************************************************
* import_nsfilenames_to_hdrop
*
* Import NSFilenamesPboardType data, converting the property-list-
...
...
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