File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -302,8 +302,7 @@ SetWorldTransform(
302
302
_In_ HDC hdc ,
303
303
_Out_ CONST XFORM * pxform )
304
304
{
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 );
307
306
}
308
307
309
308
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ GreModifyWorldTransform(
480
480
XFORMOBJ_iCombine (& xoDC , & xoDC , & xoSrc );
481
481
break ;
482
482
483
- case MWT_MAX + 1 : // Must be MWT_SET????
483
+ case MWT_SET :
484
484
XFORMOBJ_vInit (& xoDC , & pdc -> pdcattr -> mxWorldToPage );
485
485
if (XFORMOBJ_iSetXform (& xoDC , pxform ) == DDI_ERROR )
486
486
return FALSE;
Original file line number Diff line number Diff line change @@ -1529,7 +1529,7 @@ PATH_FillPath(
1529
1529
/* Go to GM_ADVANCED temporarily to restore the world transform */
1530
1530
graphicsMode = pdcattr -> iGraphicsMode ;
1531
1531
pdcattr -> iGraphicsMode = GM_ADVANCED ;
1532
- GreModifyWorldTransform (dc , & xform , MWT_MAX + 1 );
1532
+ GreModifyWorldTransform (dc , & xform , MWT_SET );
1533
1533
pdcattr -> iGraphicsMode = graphicsMode ;
1534
1534
return TRUE;
1535
1535
}
Original file line number Diff line number Diff line change @@ -170,6 +170,12 @@ typedef enum GDILoObjType
170
170
GDILoObjType_LO_METADC16_TYPE = 0x660000
171
171
} GDILOOBJTYPE , * PGDILOOBJTYPE ;
172
172
173
+ /**
174
+ World Transform modification modes
175
+ See [MS-EMF] Section 2.1.24
176
+ */
177
+ #define MWT_SET 0x04
178
+
173
179
#define GdiWorldSpaceToPageSpace 0x203
174
180
#define GdiWorldSpaceToDeviceSpace 0x204
175
181
#define GdiPageSpaceToDeviceSpace 0x304
You can’t perform that action at this time.
0 commit comments