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
2bf1562c
Commit
2bf1562c
authored
Aug 06, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Aug 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually pass the blend function on to the graphics driver.
parent
42c8b413
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
bitblt.c
dlls/gdi/bitblt.c
+5
-4
gdi_private.h
dlls/gdi/gdi_private.h
+1
-1
x11drv.h
dlls/x11drv/x11drv.h
+1
-1
xrender.c
dlls/x11drv/xrender.c
+2
-2
No files found.
dlls/gdi/bitblt.c
View file @
2bf1562c
...
...
@@ -404,20 +404,21 @@ BOOL WINAPI GdiAlphaBlend(HDC hdcDst, int xDst, int yDst, int widthDst, int heig
{
BOOL
ret
=
FALSE
;
DC
*
dcDst
,
*
dcSrc
;
DWORD
bfn
=
0
;
if
((
dcSrc
=
DC_GetDCUpdate
(
hdcSrc
)))
GDI_ReleaseObj
(
hdcSrc
);
/* FIXME: there is a race condition here */
if
((
dcDst
=
DC_GetDCUpdate
(
hdcDst
)))
{
dcSrc
=
DC_GetDCPtr
(
hdcSrc
);
TRACE
(
"%p %d,%d %dx%d -> %p %d,%d %dx%d
blend=%08l
x
\n
"
,
TRACE
(
"%p %d,%d %dx%d -> %p %d,%d %dx%d
op=%02x flags=%02x srcconstalpha=%02x alphafmt=%02
x
\n
"
,
hdcSrc
,
xSrc
,
ySrc
,
widthSrc
,
heightSrc
,
hdcDst
,
xDst
,
yDst
,
widthDst
,
heightDst
,
bfn
);
hdcDst
,
xDst
,
yDst
,
widthDst
,
heightDst
,
blendFunction
.
BlendOp
,
blendFunction
.
BlendFlags
,
blendFunction
.
SourceConstantAlpha
,
blendFunction
.
AlphaFormat
);
if
(
dcDst
->
funcs
->
pAlphaBlend
)
ret
=
dcDst
->
funcs
->
pAlphaBlend
(
dcDst
->
physDev
,
xDst
,
yDst
,
widthDst
,
heightDst
,
dcSrc
?
dcSrc
->
physDev
:
NULL
,
xSrc
,
ySrc
,
widthSrc
,
heightSrc
,
b
f
n
);
xSrc
,
ySrc
,
widthSrc
,
heightSrc
,
b
lendFunctio
n
);
if
(
dcSrc
)
GDI_ReleaseObj
(
hdcSrc
);
GDI_ReleaseObj
(
hdcDst
);
}
...
...
dlls/gdi/gdi_private.h
View file @
2bf1562c
...
...
@@ -52,7 +52,7 @@ typedef struct tagDC_FUNCS
{
INT
(
*
pAbortDoc
)(
PHYSDEV
);
BOOL
(
*
pAbortPath
)(
PHYSDEV
);
BOOL
(
*
pAlphaBlend
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
DWORD
);
BOOL
(
*
pAlphaBlend
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
BLENDFUNCTION
);
BOOL
(
*
pAngleArc
)(
PHYSDEV
,
INT
,
INT
,
DWORD
,
FLOAT
,
FLOAT
);
BOOL
(
*
pArc
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
BOOL
(
*
pArcTo
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
...
...
dlls/x11drv/x11drv.h
View file @
2bf1562c
...
...
@@ -120,7 +120,7 @@ extern unsigned int X11DRV_server_startticks;
extern
BOOL
X11DRV_AlphaBlend
(
X11DRV_PDEVICE
*
physDevDst
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
X11DRV_PDEVICE
*
physDevSrc
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
DWORD
blendfn
);
INT
widthSrc
,
INT
heightSrc
,
BLENDFUNCTION
blendfn
);
extern
BOOL
X11DRV_BitBlt
(
X11DRV_PDEVICE
*
physDevDst
,
INT
xDst
,
INT
yDst
,
INT
width
,
INT
height
,
X11DRV_PDEVICE
*
physDevSrc
,
INT
xSrc
,
INT
ySrc
,
DWORD
rop
);
...
...
dlls/x11drv/xrender.c
View file @
2bf1562c
...
...
@@ -1518,7 +1518,7 @@ done:
BOOL
X11DRV_AlphaBlend
(
X11DRV_PDEVICE
*
devDst
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
X11DRV_PDEVICE
*
devSrc
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
DWORD
blendfn
)
BLENDFUNCTION
blendfn
)
{
XRenderPictureAttributes
pa
;
XRenderPictFormat
*
src_format
;
...
...
@@ -1679,7 +1679,7 @@ void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev)
BOOL
X11DRV_AlphaBlend
(
X11DRV_PDEVICE
*
devDst
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
X11DRV_PDEVICE
*
devSrc
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
DWORD
blendfn
)
BLENDFUNCTION
blendfn
)
{
FIXME
(
"not supported - XRENDER headers were missing at compile time
\n
"
);
return
FALSE
;
...
...
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