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
13f203a5
Commit
13f203a5
authored
Apr 15, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: The source offset for mirrored Xrender blits must be scaled too.
parent
d862b40a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
xrender.c
dlls/winex11.drv/xrender.c
+12
-6
No files found.
dlls/winex11.drv/xrender.c
View file @
13f203a5
...
...
@@ -1884,8 +1884,8 @@ static void xrender_blit(Picture src_pict, Picture mask_pict, Picture dst_pict,
* xscale/yscale contain the scaling factors for the width and height. In case of mirroring
* we also need a x- and y-offset because without the pixels will be in the wrong quadrant of the x-y plane.
*/
int
x_offset
=
(
xscale
<
0
)
?
width
:
0
;
int
y_offset
=
(
yscale
<
0
)
?
height
:
0
;
int
x_offset
=
(
xscale
<
0
)
?
-
width
:
0
;
int
y_offset
=
(
yscale
<
0
)
?
-
height
:
0
;
/* When we are using a mask, 'src_pict' contains a 1x1 picture for tiling, the actual source data is in mask_pict.
* The 'src_pict' data effectively acts as an alpha channel to the tile data. We need PictOpOver for correct rendering. */
...
...
@@ -1897,11 +1897,17 @@ static void xrender_blit(Picture src_pict, Picture mask_pict, Picture dst_pict,
if
(
xscale
!=
1
.
0
||
yscale
!=
1
.
0
)
{
if
(
mask_pict
)
set_xrender_transformation
(
mask_pict
,
xscale
,
yscale
,
x_src
+
x_offset
,
y_src
+
y_offset
);
{
set_xrender_transformation
(
mask_pict
,
xscale
,
yscale
,
x_src
,
y_src
);
pXRenderComposite
(
gdi_display
,
op
,
src_pict
,
mask_pict
,
dst_pict
,
0
,
0
,
x_offset
,
y_offset
,
0
,
0
,
width
,
height
);
}
else
set_xrender_transformation
(
src_pict
,
xscale
,
yscale
,
x_src
+
x_offset
,
y_src
+
y_offset
);
pXRenderComposite
(
gdi_display
,
op
,
src_pict
,
mask_pict
,
dst_pict
,
0
,
0
,
0
,
0
,
0
,
0
,
width
,
height
);
{
set_xrender_transformation
(
src_pict
,
xscale
,
yscale
,
x_src
,
y_src
);
pXRenderComposite
(
gdi_display
,
op
,
src_pict
,
mask_pict
,
dst_pict
,
x_offset
,
y_offset
,
0
,
0
,
0
,
0
,
width
,
height
);
}
}
else
{
...
...
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