Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bf86daa0
Commit
bf86daa0
authored
Jul 05, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Jul 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move AlphaBlend over to get_xrender_format.
parent
8262e0a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
36 deletions
+8
-36
xrender.c
dlls/winex11.drv/xrender.c
+8
-36
No files found.
dlls/winex11.drv/xrender.c
View file @
bf86daa0
...
...
@@ -1739,35 +1739,6 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
BLENDFUNCTION
blendfn
)
{
XRenderPictureAttributes
pa
;
XRenderPictFormat
*
src_format
;
XRenderPictFormat
argb32_templ
=
{
0
,
/* id */
PictTypeDirect
,
/* type */
32
,
/* depth */
{
/* direct */
16
,
/* direct.red */
0xff
,
/* direct.redMask */
8
,
/* direct.green */
0xff
,
/* direct.greenMask */
0
,
/* direct.blue */
0xff
,
/* direct.blueMask */
24
,
/* direct.alpha */
0xff
,
/* direct.alphaMask */
},
0
,
/* colormap */
};
unsigned
long
argb32_templ_mask
=
PictFormatType
|
PictFormatDepth
|
PictFormatRed
|
PictFormatRedMask
|
PictFormatGreen
|
PictFormatGreenMask
|
PictFormatBlue
|
PictFormatBlueMask
|
PictFormatAlpha
|
PictFormatAlphaMask
;
Picture
dst_pict
,
src_pict
;
Pixmap
xpm
;
DIBSECTION
dib
;
...
...
@@ -1780,6 +1751,7 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
BOOL
top_down
=
FALSE
;
RGNDATA
*
rgndata
;
WineXRenderFormat
*
dst_format
=
get_xrender_format_from_pdevice
(
devDst
);
WineXRenderFormat
*
src_format
;
int
repeat_src
;
if
(
!
X11DRV_XRender_Installed
)
{
...
...
@@ -1896,13 +1868,13 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
image
=
XCreateImage
(
gdi_display
,
visual
,
32
,
ZPixmap
,
0
,
(
char
*
)
data
,
widthSrc
,
heightSrc
,
32
,
widthSrc
*
4
);
/*
Avoid using XRenderFindStandardFormat as older libraries don't have it
src_format = pXRenderFindStandardFormat(gdi_display, PictStandardARGB32);
*/
src_format
=
pXRenderFindFormat
(
gdi_display
,
argb32_templ_mask
,
&
argb32_templ
,
0
);
src_format
=
get_xrender_format
(
WXR_FORMAT_A8R8G8B8
);
TRACE
(
"src_format %p
\n
"
,
src_format
);
if
(
!
src_format
)
{
WARN
(
"Unable to find a picture format supporting alpha, make sure X is running at 24-bit
\n
"
);
return
FALSE
;
}
pa
.
subwindow_mode
=
IncludeInferiors
;
pa
.
repeat
=
repeat_src
?
RepeatNormal
:
RepeatNone
;
...
...
@@ -1923,7 +1895,7 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
XPutImage
(
gdi_display
,
xpm
,
gc
,
image
,
0
,
0
,
0
,
0
,
widthSrc
,
heightSrc
);
src_pict
=
pXRenderCreatePicture
(
gdi_display
,
xpm
,
src_format
,
xpm
,
src_format
->
pict_format
,
CPSubwindowMode
|
CPRepeat
,
&
pa
);
TRACE
(
"src_pict %08lx
\n
"
,
src_pict
);
...
...
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