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
6c07876e
Commit
6c07876e
authored
Oct 11, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add an AlphaBlend entry point in the DIB driver.
parent
d3d3e37d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+16
-0
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-1
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+2
-0
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
6c07876e
...
...
@@ -1133,3 +1133,19 @@ BOOL dibdrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
release_dc_ptr
(
dc_dst
);
return
ret
;
}
/***********************************************************************
* dibdrv_AlphaBlend
*/
BOOL
dibdrv_AlphaBlend
(
PHYSDEV
dst_dev
,
struct
bitblt_coords
*
dst
,
PHYSDEV
src_dev
,
struct
bitblt_coords
*
src
,
BLENDFUNCTION
blend
)
{
BOOL
ret
;
DC
*
dc_dst
=
get_dc_ptr
(
dst_dev
->
hdc
);
if
(
!
dc_dst
)
return
FALSE
;
ret
=
dc_dst
->
nulldrv
.
funcs
->
pAlphaBlend
(
&
dc_dst
->
nulldrv
,
dst
,
src_dev
,
src
,
blend
);
release_dc_ptr
(
dc_dst
);
return
ret
;
}
dlls/gdi32/dibdrv/dc.c
View file @
6c07876e
...
...
@@ -501,7 +501,7 @@ const DC_FUNCTIONS dib_driver =
{
NULL
,
/* pAbortDoc */
NULL
,
/* pAbortPath */
NULL
,
/* pAlphaBlend */
dibdrv_AlphaBlend
,
/* pAlphaBlend */
NULL
,
/* pAngleArc */
NULL
,
/* pArc */
NULL
,
/* pArcTo */
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
6c07876e
...
...
@@ -100,6 +100,8 @@ typedef struct dibdrv_physdev
#define DEFER_PEN 2
#define DEFER_BRUSH 4
extern
BOOL
dibdrv_AlphaBlend
(
PHYSDEV
dst_dev
,
struct
bitblt_coords
*
dst
,
PHYSDEV
src_dev
,
struct
bitblt_coords
*
src
,
BLENDFUNCTION
blend
)
DECLSPEC_HIDDEN
;
extern
DWORD
dibdrv_GetImage
(
PHYSDEV
dev
,
HBITMAP
hbitmap
,
BITMAPINFO
*
info
,
struct
gdi_image_bits
*
bits
,
struct
bitblt_coords
*
src
)
DECLSPEC_HIDDEN
;
extern
BOOL
dibdrv_LineTo
(
PHYSDEV
dev
,
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
...
...
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