2 * Metafile GDI mapping mode functions
4 * Copyright 1996 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "metafiledrv.h"
25 /***********************************************************************
28 INT MFDRV_SetMapMode( DC *dc, INT mode )
30 INT prevMode = dc->MapMode;
31 MFDRV_MetaParam1( dc, META_SETMAPMODE, mode );
36 /***********************************************************************
37 * MFDRV_SetViewportExt
39 BOOL MFDRV_SetViewportExt( DC *dc, INT x, INT y )
41 MFDRV_MetaParam2( dc, META_SETVIEWPORTEXT, x, y );
46 /***********************************************************************
47 * MFDRV_SetViewportOrg
49 BOOL MFDRV_SetViewportOrg( DC *dc, INT x, INT y )
51 MFDRV_MetaParam2( dc, META_SETVIEWPORTORG, x, y );
56 /***********************************************************************
59 BOOL MFDRV_SetWindowExt( DC *dc, INT x, INT y )
61 MFDRV_MetaParam2( dc, META_SETWINDOWEXT, x, y );
66 /***********************************************************************
69 BOOL MFDRV_SetWindowOrg( DC *dc, INT x, INT y )
71 MFDRV_MetaParam2( dc, META_SETWINDOWORG, x, y );
76 /***********************************************************************
77 * MFDRV_OffsetViewportOrg
79 BOOL MFDRV_OffsetViewportOrg( DC *dc, INT x, INT y )
81 MFDRV_MetaParam2( dc, META_OFFSETVIEWPORTORG, x, y );
86 /***********************************************************************
87 * MFDRV_OffsetWindowOrg
89 BOOL MFDRV_OffsetWindowOrg( DC *dc, INT x, INT y )
91 MFDRV_MetaParam2( dc, META_OFFSETWINDOWORG, x, y );
96 /***********************************************************************
97 * MFDRV_ScaleViewportExt
99 BOOL MFDRV_ScaleViewportExt( DC *dc, INT xNum, INT xDenom,
100 INT yNum, INT yDenom )
102 MFDRV_MetaParam4( dc, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom );
107 /***********************************************************************
108 * MFDRV_ScaleWindowExt
110 BOOL MFDRV_ScaleWindowExt( DC *dc, INT xNum, INT xDenom,
111 INT yNum, INT yDenom )
113 MFDRV_MetaParam4( dc, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom );