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
8eb9ab53
Commit
8eb9ab53
authored
Jan 27, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Check for failure to convert the brush bitmap to X11.
parent
b5314f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
brush.c
dlls/winex11.drv/brush.c
+5
-0
No files found.
dlls/winex11.drv/brush.c
View file @
8eb9ab53
...
@@ -269,6 +269,11 @@ HBITMAP create_brush_bitmap( X11DRV_PDEVICE *physDev, const struct brush_pattern
...
@@ -269,6 +269,11 @@ HBITMAP create_brush_bitmap( X11DRV_PDEVICE *physDev, const struct brush_pattern
memdc
=
CreateCompatibleDC
(
physDev
->
dev
.
hdc
);
memdc
=
CreateCompatibleDC
(
physDev
->
dev
.
hdc
);
SelectObject
(
memdc
,
bitmap
);
SelectObject
(
memdc
,
bitmap
);
DeleteDC
(
memdc
);
DeleteDC
(
memdc
);
if
(
!
X11DRV_get_phys_bitmap
(
bitmap
))
{
DeleteObject
(
bitmap
);
return
0
;
}
SetDIBits
(
physDev
->
dev
.
hdc
,
bitmap
,
0
,
abs
(
info
->
bmiHeader
.
biHeight
),
SetDIBits
(
physDev
->
dev
.
hdc
,
bitmap
,
0
,
abs
(
info
->
bmiHeader
.
biHeight
),
pattern
->
bits
.
ptr
,
info
,
pattern
->
usage
);
pattern
->
bits
.
ptr
,
info
,
pattern
->
usage
);
...
...
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