winedump/emf: Add EMR_SETMITERLIMIT record dumping.

This commit is contained in:
Nikolay Sivov 2023-10-07 18:33:47 +02:00 committed by Alexandre Julliard
parent fea9bb7523
commit 372c43868b

View file

@ -174,7 +174,6 @@ unsigned long dump_emfrecord(const char *pfx, unsigned long offset)
EMRCASE(EMR_ARCTO);
EMRCASE(EMR_POLYDRAW);
EMRCASE(EMR_SETARCDIRECTION);
EMRCASE(EMR_SETMITERLIMIT);
EMRCASE(EMR_BEGINPATH);
EMRCASE(EMR_ENDPATH);
EMRCASE(EMR_CLOSEFIGURE);
@ -186,6 +185,15 @@ unsigned long dump_emfrecord(const char *pfx, unsigned long offset)
EMRCASE(EMR_SELECTCLIPPATH);
EMRCASE(EMR_ABORTPATH);
case EMR_SETMITERLIMIT:
{
const EMRSETMITERLIMIT *record = PRD(offset, sizeof(*record));
printf("%s%-20s %08x\n", pfx, "EMR_SETMITERLIMIT", length);
printf("%s miter limit %u\n", pfx, *(unsigned int *)&record->eMiterLimit);
break;
}
case EMR_GDICOMMENT:
{
printf("%s%-20s %08x\n", pfx, "EMR_GDICOMMENT", length);