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
2c47d0b5
Commit
2c47d0b5
authored
Apr 14, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Dump EMR_ALPHABLEND record.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce37290a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
emf.c
tools/winedump/emf.c
+24
-1
No files found.
tools/winedump/emf.c
View file @
2c47d0b5
...
...
@@ -397,7 +397,30 @@ static int dump_emfrecord(void)
EMRCASE
(
EMR_COLORCORRECTPALETTE
);
EMRCASE
(
EMR_SETICMPROFILEA
);
EMRCASE
(
EMR_SETICMPROFILEW
);
EMRCASE
(
EMR_ALPHABLEND
);
case
EMR_ALPHABLEND
:
{
const
EMRALPHABLEND
*
blend
=
PRD
(
offset
,
sizeof
(
*
blend
));
const
BITMAPINFOHEADER
*
bmih
=
(
const
BITMAPINFOHEADER
*
)((
const
unsigned
char
*
)
blend
+
blend
->
offBmiSrc
);
printf
(
"%-20s %08x
\n
"
,
"EMR_ALPHABLEND"
,
length
);
printf
(
"bounds (%d,%d - %d,%d) dst %d,%d %dx%d src %d,%d %dx%d rop %#x xform (%f, %f, %f, %f, %f, %f)
\n
"
"bk_color %#x usage %#x bmi_offset %#x bmi_size %#x bits_offset %#x bits_size %#x
\n
"
,
blend
->
rclBounds
.
left
,
blend
->
rclBounds
.
top
,
blend
->
rclBounds
.
right
,
blend
->
rclBounds
.
bottom
,
blend
->
xDest
,
blend
->
yDest
,
blend
->
cxDest
,
blend
->
cyDest
,
blend
->
xSrc
,
blend
->
ySrc
,
blend
->
cxSrc
,
blend
->
cySrc
,
blend
->
dwRop
,
blend
->
xformSrc
.
eM11
,
blend
->
xformSrc
.
eM12
,
blend
->
xformSrc
.
eM21
,
blend
->
xformSrc
.
eM22
,
blend
->
xformSrc
.
eDx
,
blend
->
xformSrc
.
eDy
,
blend
->
crBkColorSrc
,
blend
->
iUsageSrc
,
blend
->
offBmiSrc
,
blend
->
cbBmiSrc
,
blend
->
offBitsSrc
,
blend
->
cbBitsSrc
);
printf
(
"BITMAPINFOHEADER biSize %#x biWidth %d biHeight %d biPlanes %d biBitCount %d biCompression %#x
\n
"
"biSizeImage %#x biXPelsPerMeter %d biYPelsPerMeter %d biClrUsed %#x biClrImportant %#x
\n
"
,
bmih
->
biSize
,
bmih
->
biWidth
,
bmih
->
biHeight
,
bmih
->
biPlanes
,
bmih
->
biBitCount
,
bmih
->
biCompression
,
bmih
->
biSizeImage
,
bmih
->
biXPelsPerMeter
,
bmih
->
biYPelsPerMeter
,
bmih
->
biClrUsed
,
bmih
->
biClrImportant
);
break
;
}
EMRCASE
(
EMR_SETLAYOUT
);
EMRCASE
(
EMR_TRANSPARENTBLT
);
EMRCASE
(
EMR_RESERVED_117
);
...
...
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