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
4612d61b
Commit
4612d61b
authored
Nov 17, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix selecting a pattern brush into a DIB section device.
parent
57c12336
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
xrender.c
dlls/winex11.drv/xrender.c
+3
-8
No files found.
dlls/winex11.drv/xrender.c
View file @
4612d61b
...
...
@@ -2985,18 +2985,13 @@ static HBRUSH xrenderdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, HBITMAP bitmap
if
(
!
bitmap
||
!
(
physbitmap
=
X11DRV_get_phys_bitmap
(
bitmap
)))
{
format
=
get_bitmap_format
(
info
->
bmiHeader
.
biBitCount
);
if
(
format
==
physdev
->
format
||
!
pict_formats
[
format
])
goto
x11drv_fallback
;
if
(
!
(
bitmap
=
create_brush_bitmap
(
physdev
->
x11dev
,
info
,
bits
,
usage
)))
return
0
;
physbitmap
=
X11DRV_get_phys_bitmap
(
bitmap
);
delete_bitmap
=
TRUE
;
}
else
{
format
=
get_xrender_format_from_color_shifts
(
physbitmap
->
depth
,
&
physbitmap
->
color_shifts
);
if
(
format
==
WXR_FORMAT_MONO
||
format
==
physdev
->
format
||
!
pict_formats
[
format
])
goto
x11drv_fallback
;
}
format
=
get_xrender_format_from_color_shifts
(
physbitmap
->
depth
,
&
physbitmap
->
color_shifts
);
if
(
format
==
WXR_FORMAT_MONO
||
!
pict_formats
[
format
])
goto
x11drv_fallback
;
GetObjectW
(
bitmap
,
sizeof
(
bm
),
&
bm
);
...
...
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