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
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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
165 additions
and
45 deletions
+165
-45
clipboard.c
dlls/x11drv/clipboard.c
+149
-40
event.c
dlls/x11drv/event.c
+13
-5
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,
...
@@ -608,6 +608,7 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
UINT
wFormat
;
UINT
wFormat
;
UINT
alias
;
UINT
alias
;
ULONG
cTargets
;
ULONG
cTargets
;
LPWINE_CLIPFORMAT
lpFormat
;
/*
/*
* Count the number of items we wish to expose as selection targets.
* Count the number of items we wish to expose as selection targets.
...
@@ -617,10 +618,17 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
...
@@ -617,10 +618,17 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
for
(
wFormat
=
0
;
(
wFormat
=
X11DRV_EnumClipboardFormats
(
wFormat
));)
for
(
wFormat
=
0
;
(
wFormat
=
X11DRV_EnumClipboardFormats
(
wFormat
));)
{
{
LPWINE_CLIPFORMAT
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
lpFormat
=
X11DRV_CLIPBOARD_LookupFormat
(
wFormat
);
if
(
lpFormat
&&
X11DRV_CLIPBOARD_LookupPropertyAlias
(
lpFormat
->
drvData
))
if
(
lpFormat
)
{
if
(
!
lpFormat
->
lpDrvExportFunc
)
cTargets
--
;
if
(
X11DRV_CLIPBOARD_LookupPropertyAlias
(
lpFormat
->
drvData
))
cTargets
++
;
cTargets
++
;
}
}
}
TRACE_
(
clipboard
)(
" found %ld formats
\n
"
,
cTargets
);
TRACE_
(
clipboard
)(
" found %ld formats
\n
"
,
cTargets
);
...
@@ -633,8 +641,9 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
...
@@ -633,8 +641,9 @@ static Atom EVENT_SelectionRequest_TARGETS( Display *display, Window requestor,
for
(
targets
[
0
]
=
x11drv_atom
(
TARGETS
),
cTargets
=
1
,
wFormat
=
0
;
for
(
targets
[
0
]
=
x11drv_atom
(
TARGETS
),
cTargets
=
1
,
wFormat
=
0
;
(
wFormat
=
X11DRV_EnumClipboardFormats
(
wFormat
));)
(
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
);
EVENT_SelectionRequest_AddTARGETS
(
targets
,
&
cTargets
,
lpFormat
->
drvData
);
/* Check if any alias should be listed */
/* Check if any alias should be listed */
...
@@ -835,7 +844,7 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
...
@@ -835,7 +844,7 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
if
(
!
lpFormat
)
if
(
!
lpFormat
)
lpFormat
=
X11DRV_CLIPBOARD_LookupAliasProperty
(
event
->
target
);
lpFormat
=
X11DRV_CLIPBOARD_LookupAliasProperty
(
event
->
target
);
if
(
lpFormat
)
if
(
lpFormat
&&
lpFormat
->
lpDrvExportFunc
)
{
{
LPWINE_CLIPDATA
lpData
=
X11DRV_CLIPBOARD_LookupData
(
lpFormat
->
wFormatID
);
LPWINE_CLIPDATA
lpData
=
X11DRV_CLIPBOARD_LookupData
(
lpFormat
->
wFormatID
);
...
@@ -848,7 +857,6 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
...
@@ -848,7 +857,6 @@ static void EVENT_SelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BO
if
(
hClipData
&&
(
lpClipData
=
GlobalLock
(
hClipData
)))
if
(
hClipData
&&
(
lpClipData
=
GlobalLock
(
hClipData
)))
{
{
TRACE_
(
clipboard
)(
"
\t
Updating property %s, %ld bytes
\n
"
,
TRACE_
(
clipboard
)(
"
\t
Updating property %s, %ld bytes
\n
"
,
lpFormat
->
Name
,
cBytes
);
lpFormat
->
Name
,
cBytes
);
...
...
dlls/x11drv/window.c
View file @
455a2239
...
@@ -98,6 +98,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
...
@@ -98,6 +98,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"XdndSelection"
,
"XdndSelection"
,
"XdndTarget"
,
"XdndTarget"
,
"XdndTypeList"
,
"XdndTypeList"
,
"WCF_DIB"
,
"image/gif"
,
"image/gif"
,
"text/html"
,
"text/html"
,
"text/plain"
,
"text/plain"
,
...
...
dlls/x11drv/x11drv.h
View file @
455a2239
...
@@ -435,6 +435,7 @@ enum x11drv_atoms
...
@@ -435,6 +435,7 @@ enum x11drv_atoms
XATOM_XdndSelection
,
XATOM_XdndSelection
,
XATOM_XdndTarget
,
XATOM_XdndTarget
,
XATOM_XdndTypeList
,
XATOM_XdndTypeList
,
XATOM_WCF_DIB
,
XATOM_image_gif
,
XATOM_image_gif
,
XATOM_text_html
,
XATOM_text_html
,
XATOM_text_plain
,
XATOM_text_plain
,
...
@@ -453,6 +454,7 @@ typedef struct tagWINE_CLIPDATA {
...
@@ -453,6 +454,7 @@ typedef struct tagWINE_CLIPDATA {
UINT
wFormatID
;
UINT
wFormatID
;
HANDLE16
hData16
;
HANDLE16
hData16
;
HANDLE
hData32
;
HANDLE
hData32
;
UINT
drvData
;
UINT
wFlags
;
UINT
wFlags
;
struct
tagWINE_CLIPDATA
*
PrevData
;
struct
tagWINE_CLIPDATA
*
PrevData
;
struct
tagWINE_CLIPDATA
*
NextData
;
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