Make CryptImport/ExportPublicKeyInfoEx behave the way MSDN describes
[wine/gsoc-2012-control.git] / dlls / gdi / mfdrv / mapping.c
blob89450bdc74880cbdd48f6f222ba2e30839801bcb
1 /*
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
21 #include "gdi.h"
22 #include "gdi_private.h"
23 #include "mfdrv/metafiledrv.h"
26 /***********************************************************************
27 * MFDRV_SetMapMode
29 INT MFDRV_SetMapMode( PHYSDEV dev, INT mode )
31 if(!MFDRV_MetaParam1( dev, META_SETMAPMODE, mode ))
32 return FALSE;
33 return GDI_NO_MORE_WORK;
37 /***********************************************************************
38 * MFDRV_SetViewportExt
40 INT MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y )
42 if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTEXT, x, y ))
43 return FALSE;
44 return GDI_NO_MORE_WORK;
48 /***********************************************************************
49 * MFDRV_SetViewportOrg
51 INT MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y )
53 if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTORG, x, y ))
54 return FALSE;
55 return GDI_NO_MORE_WORK;
59 /***********************************************************************
60 * MFDRV_SetWindowExt
62 INT MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y )
64 if(!MFDRV_MetaParam2( dev, META_SETWINDOWEXT, x, y ))
65 return FALSE;
66 return GDI_NO_MORE_WORK;
70 /***********************************************************************
71 * MFDRV_SetWindowOrg
73 INT MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y )
75 if(!MFDRV_MetaParam2( dev, META_SETWINDOWORG, x, y ))
76 return FALSE;
77 return GDI_NO_MORE_WORK;
81 /***********************************************************************
82 * MFDRV_OffsetViewportOrg
84 INT MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y )
86 if(!MFDRV_MetaParam2( dev, META_OFFSETVIEWPORTORG, x, y ))
87 return FALSE;
88 return GDI_NO_MORE_WORK;
92 /***********************************************************************
93 * MFDRV_OffsetWindowOrg
95 INT MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y )
97 if(!MFDRV_MetaParam2( dev, META_OFFSETWINDOWORG, x, y ))
98 return FALSE;
99 return GDI_NO_MORE_WORK;
103 /***********************************************************************
104 * MFDRV_ScaleViewportExt
106 INT MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
108 if(!MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom ))
109 return FALSE;
110 return GDI_NO_MORE_WORK;
114 /***********************************************************************
115 * MFDRV_ScaleWindowExt
117 INT MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
119 if(!MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom ))
120 return FALSE;
121 return GDI_NO_MORE_WORK;