Release 961222
[wine/gsoc-2012-control.git] / graphics / metafiledrv / mapping.c
blob4e396d1ebdb43dcfc864decb145dca4f5ab3ca86
1 /*
2 * Metafile GDI mapping mode functions
4 * Copyright 1996 Alexandre Julliard
5 */
7 #include "gdi.h"
8 #include "metafile.h"
9 #include "metafiledrv.h"
12 /***********************************************************************
13 * MFDRV_SetMapMode
15 INT32 MFDRV_SetMapMode( DC *dc, INT32 mode )
17 INT32 prevMode = dc->w.MapMode;
18 MF_MetaParam1( dc, META_SETMAPMODE, mode );
19 return prevMode;
23 /***********************************************************************
24 * MFDRV_SetViewportExt
26 BOOL32 MFDRV_SetViewportExt( DC *dc, INT32 x, INT32 y )
28 MF_MetaParam2( dc, META_SETVIEWPORTEXT, x, y );
29 return TRUE;
33 /***********************************************************************
34 * MFDRV_SetViewportOrg
36 BOOL32 MFDRV_SetViewportOrg( DC *dc, INT32 x, INT32 y )
38 MF_MetaParam2( dc, META_SETVIEWPORTORG, x, y );
39 return TRUE;
43 /***********************************************************************
44 * MFDRV_SetWindowExt
46 BOOL32 MFDRV_SetWindowExt( DC *dc, INT32 x, INT32 y )
48 MF_MetaParam2( dc, META_SETWINDOWEXT, x, y );
49 return TRUE;
53 /***********************************************************************
54 * MFDRV_SetWindowOrg
56 BOOL32 MFDRV_SetWindowOrg( DC *dc, INT32 x, INT32 y )
58 MF_MetaParam2( dc, META_SETWINDOWORG, x, y );
59 return TRUE;
63 /***********************************************************************
64 * MFDRV_OffsetViewportOrg
66 BOOL32 MFDRV_OffsetViewportOrg( DC *dc, INT32 x, INT32 y )
68 MF_MetaParam2( dc, META_OFFSETVIEWPORTORG, x, y );
69 return TRUE;
73 /***********************************************************************
74 * MFDRV_OffsetWindowOrg
76 BOOL32 MFDRV_OffsetWindowOrg( DC *dc, INT32 x, INT32 y )
78 MF_MetaParam2( dc, META_OFFSETWINDOWORG, x, y );
79 return TRUE;
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 );
90 return TRUE;
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 );
101 return TRUE;