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
455a2239
Commit
455a2239
authored
Feb 20, 2004
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Feb 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented rendering synthesized BITMAP and DIB formats.
parent
4d984fd9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
48 deletions
+168
-48
clipboard.c
dlls/x11drv/clipboard.c
+151
-42
event.c
dlls/x11drv/event.c
+14
-6
window.c
dlls/x11drv/window.c
+1
-0
x11drv.h
dlls/x11drv/x11drv.h
+2
-0
No files found.
dlls/x11drv/clipboard.c
View file @
455a2239
This diff is collapsed.
Click to expand it.
dlls/x11drv/event.c
View file @
455a2239
...
...
@@ -608,6 +608,7 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
UINT
wFormat
;
UINT
alias
;
ULONG
cTargets
;
LPWINE_CLIPFORMAT
lpFormat
;
/*
* Count the number of items we wish to expose as selection targets.
...
...
@@ -617,9 +618,16 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
for
(
wFormat
=
0
;
(
wFormat
=
X11DRV_EnumClipboardFormats
(
wFormat
));)
{
LPWINE_CLIPFORMAT
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
if
(
lpFormat
&&
X11DRV_CLIPBOARD_LookupPropertyAlias
(
lpFormat
->
drvData
))
cTargets
++
;
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
if
(
lpFormat
)
{
if
(
!
lpFormat
->
lpDrvExportFunc
)
cTargets
--
;
if
(
X11DRV_CLIPBOARD_LookupPropertyAlias
(
lpFormat
->
drvData
))
cTargets
++
;
}
}
TRACE_
(
clipboard
)(
" found %ld formats
\n
"
,
cTargets
);
...
...
@@ -633,8 +641,9 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
for
(
targets
[
0
]
=
x11drv_atom
(
TARGETS
),
cTargets
=
1
,
wFormat
=
0
;
(
wFormat
=
X11DRV_EnumClipboardFormats
(
wFormat
));)
{
LPWINE_CLIPFORMAT
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
if
(
lpFormat
->
lpDrvExportFunc
)
EVENT_SelectionRequest_AddTARGETS
(
targets
,
&
cTargets
,
lpFormat
->
drvData
);
/* Check if any alias should be listed */
...
...
@@ -835,7 +844,7 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
if
(
!
lpFormat
)
lpFormat
=
X11DRV_CLIPBOARD_LookupAliasProperty
(
event
->
target
);
if
(
lpFormat
)
if
(
lpFormat
&&
lpFormat
->
lpDrvExportFunc
)
{
LPWINE_CLIPDATA
lpData
=
X11DRV_CLIPBOARD_LookupData
(
lpFormat
->
wFormatID
);
...
...
@@ -848,7 +857,6 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
if
(
hClipData
&&
(
lpClipData
=
GlobalLock
(
hClipData
)))
{
TRACE_
(
clipboard
)(
"
\t
Updating property %s, %ld bytes
\n
"
,
lpFormat
->
Name
,
cBytes
);
...
...
dlls/x11drv/window.c
View file @
455a2239
...
...
@@ -98,6 +98,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"XdndSelection"
,
"XdndTarget"
,
"XdndTypeList"
,
"WCF_DIB"
,
"image/gif"
,
"text/html"
,
"text/plain"
,
...
...
dlls/x11drv/x11drv.h
View file @
455a2239
...
...
@@ -435,6 +435,7 @@ enum x11drv_atoms
XATOM_XdndSelection
,
XATOM_XdndTarget
,
XATOM_XdndTypeList
,
XATOM_WCF_DIB
,
XATOM_image_gif
,
XATOM_text_html
,
XATOM_text_plain
,
...
...
@@ -453,6 +454,7 @@ typedef struct tagWINE_CLIPDATA {
UINT
wFormatID
;
HANDLE16
hData16
;
HANDLE
hData32
;
UINT
drvData
;
UINT
wFlags
;
struct
tagWINE_CLIPDATA
*
PrevData
;
struct
tagWINE_CLIPDATA
*
NextData
;
...
...
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