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
114e7269
Commit
114e7269
authored
Nov 28, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use NtUserGetDC.
parent
609990f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+2
-2
No files found.
dlls/winex11.drv/clipboard.c
View file @
114e7269
...
...
@@ -564,7 +564,7 @@ static void *create_dib_from_bitmap( HBITMAP hBmp, size_t *size )
/* Retrieve the DIB bits from the bitmap and fill in the
* DIB color table if present */
hdc
=
NtUserGetDC
Ex
(
0
,
0
,
DCX_CACHE
|
DCX_WINDOW
);
hdc
=
NtUserGetDC
(
0
);
nLinesCopied
=
NtGdiGetDIBitsInternal
(
hdc
,
hBmp
,
0
,
bmp
.
bmHeight
,
ret
+
OffsetBits
,
(
LPBITMAPINFO
)
pbmiHeader
,
0
,
0
,
0
);
NtUserReleaseDC
(
0
,
hdc
);
...
...
@@ -986,7 +986,7 @@ static void *import_image_bmp( Atom type, const void *data, size_t size, size_t
else
return
NULL
;
if
(
!
width
||
!
height
)
return
NULL
;
hdc
=
NtUserGetDC
Ex
(
0
,
0
,
DCX_CACHE
|
DCX_WINDOW
);
hdc
=
NtUserGetDC
(
0
);
if
((
hbmp
=
NtGdiCreateDIBitmapInternal
(
hdc
,
width
,
height
,
CBM_INIT
,
(
const
BYTE
*
)
data
+
bfh
->
bfOffBits
,
bmi
,
...
...
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