Skip to content

Commit d85023c

Browse files
committed
1 parent f310b02 commit d85023c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

win32ss/gdi/gdi32/objects/coord.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ SetWorldTransform(
302302
_In_ HDC hdc,
303303
_Out_ CONST XFORM *pxform)
304304
{
305-
/* FIXME shall we add undoc #define MWT_SETXFORM 4 ?? */
306-
return ModifyWorldTransform(hdc, pxform, MWT_MAX+1);
305+
return ModifyWorldTransform(hdc, pxform, MWT_SET);
307306
}
308307

309308

win32ss/gdi/ntgdi/coord.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ GreModifyWorldTransform(
480480
XFORMOBJ_iCombine(&xoDC, &xoDC, &xoSrc);
481481
break;
482482

483-
case MWT_MAX+1: // Must be MWT_SET????
483+
case MWT_SET:
484484
XFORMOBJ_vInit(&xoDC, &pdc->pdcattr->mxWorldToPage);
485485
if (XFORMOBJ_iSetXform(&xoDC, pxform) == DDI_ERROR)
486486
return FALSE;

win32ss/gdi/ntgdi/path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ PATH_FillPath(
15291529
/* Go to GM_ADVANCED temporarily to restore the world transform */
15301530
graphicsMode = pdcattr->iGraphicsMode;
15311531
pdcattr->iGraphicsMode = GM_ADVANCED;
1532-
GreModifyWorldTransform(dc, &xform, MWT_MAX+1);
1532+
GreModifyWorldTransform(dc, &xform, MWT_SET);
15331533
pdcattr->iGraphicsMode = graphicsMode;
15341534
return TRUE;
15351535
}

win32ss/include/ntgdityp.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ typedef enum GDILoObjType
170170
GDILoObjType_LO_METADC16_TYPE = 0x660000
171171
} GDILOOBJTYPE, *PGDILOOBJTYPE;
172172

173+
/**
174+
World Transform modification modes
175+
See [MS-EMF] Section 2.1.24
176+
*/
177+
#define MWT_SET 0x04
178+
173179
#define GdiWorldSpaceToPageSpace 0x203
174180
#define GdiWorldSpaceToDeviceSpace 0x204
175181
#define GdiPageSpaceToDeviceSpace 0x304

0 commit comments

Comments
 (0)