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
1c35d29e
Commit
1c35d29e
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_STRETCHBLT record.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2c47d0b5
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 @
1c35d29e
...
...
@@ -325,7 +325,30 @@ static int dump_emfrecord(void)
}
EMRCASE
(
EMR_BITBLT
);
EMRCASE
(
EMR_STRETCHBLT
);
case
EMR_STRETCHBLT
:
{
const
EMRSTRETCHBLT
*
blt
=
PRD
(
offset
,
sizeof
(
*
blt
));
const
BITMAPINFOHEADER
*
bmih
=
(
const
BITMAPINFOHEADER
*
)((
const
unsigned
char
*
)
blt
+
blt
->
offBmiSrc
);
printf
(
"%-20s %08x
\n
"
,
"EMR_STRETCHBLT"
,
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
"
,
blt
->
rclBounds
.
left
,
blt
->
rclBounds
.
top
,
blt
->
rclBounds
.
right
,
blt
->
rclBounds
.
bottom
,
blt
->
xDest
,
blt
->
yDest
,
blt
->
cxDest
,
blt
->
cyDest
,
blt
->
xSrc
,
blt
->
ySrc
,
blt
->
cxSrc
,
blt
->
cySrc
,
blt
->
dwRop
,
blt
->
xformSrc
.
eM11
,
blt
->
xformSrc
.
eM12
,
blt
->
xformSrc
.
eM21
,
blt
->
xformSrc
.
eM22
,
blt
->
xformSrc
.
eDx
,
blt
->
xformSrc
.
eDy
,
blt
->
crBkColorSrc
,
blt
->
iUsageSrc
,
blt
->
offBmiSrc
,
blt
->
cbBmiSrc
,
blt
->
offBitsSrc
,
blt
->
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_MASKBLT
);
EMRCASE
(
EMR_PLGBLT
);
EMRCASE
(
EMR_SETDIBITSTODEVICE
);
...
...
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