comctl32/listview: Simplify key selection handler a bit.
[wine] / dlls / gdi32 / mfdrv / mapping.c
1 /*
2  * Metafile GDI mapping mode functions
3  *
4  * Copyright 1996 Alexandre Julliard
5  *
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.
10  *
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.
15  *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include "gdi_private.h"
22 #include "mfdrv/metafiledrv.h"
23
24
25 /***********************************************************************
26  *           MFDRV_SetMapMode
27  */
28 INT CDECL MFDRV_SetMapMode( PHYSDEV dev, INT mode )
29 {
30     if(!MFDRV_MetaParam1( dev, META_SETMAPMODE, mode ))
31         return FALSE;
32     return GDI_NO_MORE_WORK;
33 }
34
35
36 /***********************************************************************
37  *           MFDRV_SetViewportExt
38  */
39 INT CDECL MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y )
40 {
41     if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTEXT, x, y ))
42         return FALSE;
43     return GDI_NO_MORE_WORK;
44 }
45
46
47 /***********************************************************************
48  *           MFDRV_SetViewportOrg
49  */
50 INT CDECL MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y )
51 {
52     if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTORG, x, y ))
53         return FALSE;
54     return GDI_NO_MORE_WORK;
55 }
56
57
58 /***********************************************************************
59  *           MFDRV_SetWindowExt
60  */
61 INT CDECL MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y )
62 {
63     if(!MFDRV_MetaParam2( dev, META_SETWINDOWEXT, x, y ))
64         return FALSE;
65     return GDI_NO_MORE_WORK;
66 }
67
68
69 /***********************************************************************
70  *           MFDRV_SetWindowOrg
71  */
72 INT CDECL MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y )
73 {
74     if(!MFDRV_MetaParam2( dev, META_SETWINDOWORG, x, y ))
75         return FALSE;
76     return GDI_NO_MORE_WORK;
77 }
78
79
80 /***********************************************************************
81  *           MFDRV_OffsetViewportOrg
82  */
83 INT CDECL MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y )
84 {
85     if(!MFDRV_MetaParam2( dev, META_OFFSETVIEWPORTORG, x, y ))
86         return FALSE;
87     return GDI_NO_MORE_WORK;
88 }
89
90
91 /***********************************************************************
92  *           MFDRV_OffsetWindowOrg
93  */
94 INT CDECL MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y )
95 {
96     if(!MFDRV_MetaParam2( dev, META_OFFSETWINDOWORG, x, y ))
97         return FALSE;
98     return GDI_NO_MORE_WORK;
99 }
100
101
102 /***********************************************************************
103  *           MFDRV_ScaleViewportExt
104  */
105 INT CDECL MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
106 {
107     if(!MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom ))
108         return FALSE;
109     return GDI_NO_MORE_WORK;
110 }
111
112
113 /***********************************************************************
114  *           MFDRV_ScaleWindowExt
115  */
116 INT CDECL MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
117 {
118     if(!MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom ))
119         return FALSE;
120     return GDI_NO_MORE_WORK;
121 }