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
eeeb349e
Commit
eeeb349e
authored
Jul 13, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Jul 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use set_xrender_transformation in AlphaBlend.
parent
c702da34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
xrender.c
dlls/winex11.drv/xrender.c
+4
-12
No files found.
dlls/winex11.drv/xrender.c
View file @
eeeb349e
...
...
@@ -1910,18 +1910,10 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
HeapFree
(
GetProcessHeap
(),
0
,
rgndata
);
}
#ifdef HAVE_XRENDERSETPICTURETRANSFORM
if
(
!
repeat_src
&&
(
widthDst
!=
widthSrc
||
heightDst
!=
heightSrc
))
{
double
xscale
=
widthSrc
/
(
double
)
widthDst
;
double
yscale
=
heightSrc
/
(
double
)
heightDst
;
XTransform
xform
=
{{
{
XDoubleToFixed
(
xscale
),
XDoubleToFixed
(
0
),
XDoubleToFixed
(
0
)
},
{
XDoubleToFixed
(
0
),
XDoubleToFixed
(
yscale
),
XDoubleToFixed
(
0
)
},
{
XDoubleToFixed
(
0
),
XDoubleToFixed
(
0
),
XDoubleToFixed
(
1
)
}
}};
pXRenderSetPictureTransform
(
gdi_display
,
src_pict
,
&
xform
);
}
#endif
/* Make sure we ALWAYS set the transformation matrix even if we don't need to scale. The reason is
* that later on we want to reuse pictures (it can bring a lot of extra performance) and each time
* a different transformation matrix might have been used. */
set_xrender_transformation
(
src_pict
,
widthSrc
/
(
double
)
widthDst
,
heightSrc
/
(
double
)
heightDst
,
0
,
0
);
pXRenderComposite
(
gdi_display
,
PictOpOver
,
src_pict
,
0
,
dst_pict
,
0
,
0
,
0
,
0
,
xDst
+
devDst
->
dc_rect
.
left
,
yDst
+
devDst
->
dc_rect
.
top
,
widthDst
,
heightDst
);
...
...
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