Commit 99f69b4e authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winedump: Dump EMR_HEADER record.

parent 75dd9b92
......@@ -93,7 +93,22 @@ static int dump_emfrecord(void)
switch(type)
{
EMRCASE(EMR_HEADER);
case EMR_HEADER:
{
const ENHMETAHEADER *header = PRD(offset, sizeof(*header));
printf("%-20s %08x\n", "EMR_HEADER", length);
printf("bounds (%d,%d - %d,%d) frame (%d,%d - %d,%d) signature %#x version %#x bytes %#x records %#x\n"
"handles %#x reserved %#x palette entries %#x px %dx%d mm %dx%d μm %dx%d opengl %d description %s\n",
header->rclBounds.left, header->rclBounds.top, header->rclBounds.right, header->rclBounds.bottom,
header->rclFrame.left, header->rclFrame.top, header->rclFrame.right, header->rclFrame.bottom,
header->dSignature, header->nVersion, header->nBytes, header->nRecords, header->nHandles, header->sReserved,
header->nPalEntries, header->szlDevice.cx, header->szlDevice.cy, header->szlMillimeters.cx,
header->szlMillimeters.cy, header->szlMicrometers.cx, header->szlMicrometers.cy, header->bOpenGL,
debugstr_wn((LPCWSTR)((const BYTE *)header + header->offDescription), header->nDescription));
break;
}
EMRCASE(EMR_POLYBEZIER);
EMRCASE(EMR_POLYGON);
EMRCASE(EMR_POLYLINE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment