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
f8786eac
Commit
f8786eac
authored
Oct 30, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Check format in XRender_GetSrcAreaStretch instead of depth.
parent
00bbab49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
xrender.c
dlls/winex11.drv/xrender.c
+3
-2
No files found.
dlls/winex11.drv/xrender.c
View file @
f8786eac
...
...
@@ -2103,6 +2103,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
int
height
=
visRectDst
->
bottom
-
visRectDst
->
top
;
int
x_src
=
physDevSrc
->
dc_rect
.
left
+
visRectSrc
->
left
;
int
y_src
=
physDevSrc
->
dc_rect
.
top
+
visRectSrc
->
top
;
struct
xrender_info
*
src_info
=
get_xrender_info
(
physDevSrc
);
const
WineXRenderFormat
*
dst_format
=
get_xrender_format_from_color_shifts
(
physDevDst
->
depth
,
physDevDst
->
color_shifts
);
Picture
src_pict
=
0
,
dst_pict
=
0
,
mask_pict
=
0
;
...
...
@@ -2130,8 +2131,8 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
if
((
physDevDst
->
depth
==
1
)
&&
(
physDevSrc
->
depth
>
1
))
return
FALSE
;
/* Just use traditional X copy when the
depth
s match and we don't need stretching */
if
((
physDevSrc
->
depth
==
physDevDst
->
depth
)
&&
!
stretch
)
/* Just use traditional X copy when the
format
s match and we don't need stretching */
if
((
src_info
->
format
->
format
==
dst_format
->
format
)
&&
!
stretch
)
{
TRACE
(
"Source and destination depth match and no stretching needed falling back to XCopyArea
\n
"
);
wine_tsx11_lock
();
...
...
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