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
48db6aba
Commit
48db6aba
authored
Dec 21, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Dec 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix a null pointer crash when XRender isn't around.
parent
ce05f498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
xrender.c
dlls/winex11.drv/xrender.c
+2
-1
No files found.
dlls/winex11.drv/xrender.c
View file @
48db6aba
...
...
@@ -2093,7 +2093,8 @@ void X11DRV_XRender_CopyBrush(X11DRV_PDEVICE *physDev, X_PHYSBITMAP *physBitmap,
physDev
->
brush
.
pixmap
=
XCreatePixmap
(
gdi_display
,
root_window
,
width
,
height
,
depth
);
/* Use XCopyArea when the physBitmap and brush.pixmap have the same format. */
if
(
physBitmap
->
pixmap_depth
==
1
||
src_format
->
format
==
dst_format
->
format
)
if
(
(
physBitmap
->
pixmap_depth
==
1
)
||
(
!
X11DRV_XRender_Installed
&&
physDev
->
depth
==
physBitmap
->
pixmap_depth
)
||
(
src_format
->
format
==
dst_format
->
format
)
)
{
XCopyArea
(
gdi_display
,
physBitmap
->
pixmap
,
physDev
->
brush
.
pixmap
,
get_bitmap_gc
(
physBitmap
->
pixmap_depth
),
0
,
0
,
width
,
height
,
0
,
0
);
...
...
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