2 * Metafile GDI mapping mode functions
4 * Copyright 1996 Alexandre Julliard
9 #include "metafiledrv.h"
12 /***********************************************************************
15 INT32
MFDRV_SetMapMode( DC
*dc
, INT32 mode
)
17 INT32 prevMode
= dc
->w
.MapMode
;
18 MF_MetaParam1( dc
, META_SETMAPMODE
, mode
);
23 /***********************************************************************
24 * MFDRV_SetViewportExt
26 BOOL32
MFDRV_SetViewportExt( DC
*dc
, INT32 x
, INT32 y
)
28 MF_MetaParam2( dc
, META_SETVIEWPORTEXT
, x
, y
);
33 /***********************************************************************
34 * MFDRV_SetViewportOrg
36 BOOL32
MFDRV_SetViewportOrg( DC
*dc
, INT32 x
, INT32 y
)
38 MF_MetaParam2( dc
, META_SETVIEWPORTORG
, x
, y
);
43 /***********************************************************************
46 BOOL32
MFDRV_SetWindowExt( DC
*dc
, INT32 x
, INT32 y
)
48 MF_MetaParam2( dc
, META_SETWINDOWEXT
, x
, y
);
53 /***********************************************************************
56 BOOL32
MFDRV_SetWindowOrg( DC
*dc
, INT32 x
, INT32 y
)
58 MF_MetaParam2( dc
, META_SETWINDOWORG
, x
, y
);
63 /***********************************************************************
64 * MFDRV_OffsetViewportOrg
66 BOOL32
MFDRV_OffsetViewportOrg( DC
*dc
, INT32 x
, INT32 y
)
68 MF_MetaParam2( dc
, META_OFFSETVIEWPORTORG
, x
, y
);
73 /***********************************************************************
74 * MFDRV_OffsetWindowOrg
76 BOOL32
MFDRV_OffsetWindowOrg( DC
*dc
, INT32 x
, INT32 y
)
78 MF_MetaParam2( dc
, META_OFFSETWINDOWORG
, x
, y
);
83 /***********************************************************************
84 * MFDRV_ScaleViewportExt
86 BOOL32
MFDRV_ScaleViewportExt( DC
*dc
, INT32 xNum
, INT32 xDenom
,
87 INT32 yNum
, INT32 yDenom
)
89 MF_MetaParam4( dc
, META_SCALEVIEWPORTEXT
, xNum
, xDenom
, yNum
, yDenom
);
94 /***********************************************************************
95 * MFDRV_ScaleWindowExt
97 BOOL32
MFDRV_ScaleWindowExt( DC
*dc
, INT32 xNum
, INT32 xDenom
,
98 INT32 yNum
, INT32 yDenom
)
100 MF_MetaParam4( dc
, META_SCALEWINDOWEXT
, xNum
, xDenom
, yNum
, yDenom
);