Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
29fc759d
Commit
29fc759d
authored
Sep 27, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove support for exporting the CF_METAFILEPICT format.
It can be synthesized from CF_ENHMETAFILE. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
82dfbba5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
49 deletions
+0
-49
clipboard.c
dlls/winex11.drv/clipboard.c
+0
-47
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+0
-1
No files found.
dlls/winex11.drv/clipboard.c
View file @
29fc759d
...
...
@@ -110,7 +110,6 @@ struct clipboard_format
static
HANDLE
import_data
(
Atom
type
,
const
void
*
data
,
size_t
size
);
static
HANDLE
import_enhmetafile
(
Atom
type
,
const
void
*
data
,
size_t
size
);
static
HANDLE
import_metafile
(
Atom
type
,
const
void
*
data
,
size_t
size
);
static
HANDLE
import_pixmap
(
Atom
type
,
const
void
*
data
,
size_t
size
);
static
HANDLE
import_image_bmp
(
Atom
type
,
const
void
*
data
,
size_t
size
);
static
HANDLE
import_string
(
Atom
type
,
const
void
*
data
,
size_t
size
);
...
...
@@ -125,7 +124,6 @@ static BOOL export_utf8_string( Display *display, Window win, Atom prop, Atom ta
static
BOOL
export_compound_text
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_pixmap
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_image_bmp
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_metafile
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_enhmetafile
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_text_html
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_hdrop
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
...
...
@@ -157,7 +155,6 @@ static const struct
{
0
,
CF_UNICODETEXT
,
XA_STRING
,
import_string
,
export_string
},
{
0
,
CF_UNICODETEXT
,
XATOM_text_plain
,
import_string
,
export_string
},
{
0
,
CF_BITMAP
,
XATOM_WCF_BITMAP
,
import_data
,
NULL
},
{
0
,
CF_METAFILEPICT
,
XATOM_WCF_METAFILEPICT
,
import_metafile
,
export_metafile
},
{
0
,
CF_SYLK
,
XATOM_WCF_SYLK
,
import_data
,
export_data
},
{
0
,
CF_DIF
,
XATOM_WCF_DIF
,
import_data
,
export_data
},
{
0
,
CF_TIFF
,
XATOM_WCF_TIFF
,
import_data
,
export_data
},
...
...
@@ -814,24 +811,6 @@ static HANDLE import_image_bmp( Atom type, const void *data, size_t size )
/**************************************************************************
* import_metafile
*/
static
HANDLE
import_metafile
(
Atom
type
,
const
void
*
data
,
size_t
size
)
{
METAFILEPICT
*
mf
;
if
(
size
<
sizeof
(
METAFILEPICT
))
return
0
;
if
((
mf
=
GlobalAlloc
(
GMEM_FIXED
,
sizeof
(
METAFILEPICT
)
)))
{
memcpy
(
mf
,
data
,
sizeof
(
METAFILEPICT
)
);
mf
->
hMF
=
SetMetaFileBitsEx
(
size
-
sizeof
(
METAFILEPICT
),
(
const
BYTE
*
)
data
+
sizeof
(
METAFILEPICT
)
);
}
return
mf
;
}
/**************************************************************************
* import_enhmetafile
*/
static
HANDLE
import_enhmetafile
(
Atom
type
,
const
void
*
data
,
size_t
size
)
...
...
@@ -1224,32 +1203,6 @@ static BOOL export_image_bmp( Display *display, Window win, Atom prop, Atom targ
/**************************************************************************
* export_metafile
*
* Export MetaFilePict.
*/
static
BOOL
export_metafile
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
)
{
METAFILEPICT
*
src
,
*
dst
;
unsigned
int
size
;
src
=
GlobalLock
(
handle
);
size
=
GetMetaFileBitsEx
(
src
->
hMF
,
0
,
NULL
);
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
+
sizeof
(
*
dst
)
);
if
(
dst
)
{
*
dst
=
*
src
;
GetMetaFileBitsEx
(
src
->
hMF
,
size
,
dst
+
1
);
}
GlobalUnlock
(
handle
);
put_property
(
display
,
win
,
prop
,
target
,
8
,
dst
,
size
+
sizeof
(
*
dst
)
);
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
return
TRUE
;
}
/**************************************************************************
* export_enhmetafile
*
* Export EnhMetaFile.
...
...
dlls/winex11.drv/x11drv.h
View file @
29fc759d
...
...
@@ -465,7 +465,6 @@ enum x11drv_atoms
XATOM_WCF_ENHMETAFILE
,
XATOM_WCF_HDROP
,
XATOM_WCF_LOCALE
,
XATOM_WCF_METAFILEPICT
,
XATOM_WCF_OEMTEXT
,
XATOM_WCF_PALETTE
,
XATOM_WCF_PENDATA
,
...
...
dlls/winex11.drv/x11drv_main.c
View file @
29fc759d
...
...
@@ -176,7 +176,6 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"WCF_ENHMETAFILE"
,
"WCF_HDROP"
,
"WCF_LOCALE"
,
"WCF_METAFILEPICT"
,
"WCF_OEMTEXT"
,
"WCF_PALETTE"
,
"WCF_PENDATA"
,
...
...
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