2 * Metafile GDI mapping mode functions
4 * Copyright 1996 Alexandre Julliard
8 #include "metafiledrv.h"
11 /***********************************************************************
14 INT
MFDRV_SetMapMode( DC
*dc
, INT mode
)
16 INT prevMode
= dc
->w
.MapMode
;
17 MFDRV_MetaParam1( dc
, META_SETMAPMODE
, mode
);
22 /***********************************************************************
23 * MFDRV_SetViewportExt
25 BOOL
MFDRV_SetViewportExt( DC
*dc
, INT x
, INT y
)
27 MFDRV_MetaParam2( dc
, META_SETVIEWPORTEXT
, x
, y
);
32 /***********************************************************************
33 * MFDRV_SetViewportOrg
35 BOOL
MFDRV_SetViewportOrg( DC
*dc
, INT x
, INT y
)
37 MFDRV_MetaParam2( dc
, META_SETVIEWPORTORG
, x
, y
);
42 /***********************************************************************
45 BOOL
MFDRV_SetWindowExt( DC
*dc
, INT x
, INT y
)
47 MFDRV_MetaParam2( dc
, META_SETWINDOWEXT
, x
, y
);
52 /***********************************************************************
55 BOOL
MFDRV_SetWindowOrg( DC
*dc
, INT x
, INT y
)
57 MFDRV_MetaParam2( dc
, META_SETWINDOWORG
, x
, y
);
62 /***********************************************************************
63 * MFDRV_OffsetViewportOrg
65 BOOL
MFDRV_OffsetViewportOrg( DC
*dc
, INT x
, INT y
)
67 MFDRV_MetaParam2( dc
, META_OFFSETVIEWPORTORG
, x
, y
);
72 /***********************************************************************
73 * MFDRV_OffsetWindowOrg
75 BOOL
MFDRV_OffsetWindowOrg( DC
*dc
, INT x
, INT y
)
77 MFDRV_MetaParam2( dc
, META_OFFSETWINDOWORG
, x
, y
);
82 /***********************************************************************
83 * MFDRV_ScaleViewportExt
85 BOOL
MFDRV_ScaleViewportExt( DC
*dc
, INT xNum
, INT xDenom
,
86 INT yNum
, INT yDenom
)
88 MFDRV_MetaParam4( dc
, META_SCALEVIEWPORTEXT
, xNum
, xDenom
, yNum
, yDenom
);
93 /***********************************************************************
94 * MFDRV_ScaleWindowExt
96 BOOL
MFDRV_ScaleWindowExt( DC
*dc
, INT xNum
, INT xDenom
,
97 INT yNum
, INT yDenom
)
99 MFDRV_MetaParam4( dc
, META_SCALEWINDOWEXT
, xNum
, xDenom
, yNum
, yDenom
);