wined3d: Get rid of wined3d_buffer_get_desc().
[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 <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wingdi.h"
25 #include "gdi_private.h"
26 #include "mfdrv/metafiledrv.h"
27
28
29 /***********************************************************************
30  *           MFDRV_SetMapMode
31  */
32 INT CDECL MFDRV_SetMapMode( PHYSDEV dev, INT mode )
33 {
34     return MFDRV_MetaParam1( dev, META_SETMAPMODE, mode );
35 }
36
37
38 /***********************************************************************
39  *           MFDRV_SetViewportExtEx
40  */
41 BOOL CDECL MFDRV_SetViewportExtEx( PHYSDEV dev, INT x, INT y, SIZE *size )
42 {
43     return MFDRV_MetaParam2( dev, META_SETVIEWPORTEXT, x, y );
44 }
45
46
47 /***********************************************************************
48  *           MFDRV_SetViewportOrgEx
49  */
50 BOOL CDECL MFDRV_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
51 {
52     return MFDRV_MetaParam2( dev, META_SETVIEWPORTORG, x, y );
53 }
54
55
56 /***********************************************************************
57  *           MFDRV_SetWindowExtEx
58  */
59 BOOL CDECL MFDRV_SetWindowExtEx( PHYSDEV dev, INT x, INT y, SIZE *size )
60 {
61     return MFDRV_MetaParam2( dev, META_SETWINDOWEXT, x, y );
62 }
63
64
65 /***********************************************************************
66  *           MFDRV_SetWindowOrgEx
67  */
68 BOOL CDECL MFDRV_SetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
69 {
70     return MFDRV_MetaParam2( dev, META_SETWINDOWORG, x, y );
71 }
72
73
74 /***********************************************************************
75  *           MFDRV_OffsetViewportOrgEx
76  */
77 BOOL CDECL MFDRV_OffsetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
78 {
79     return MFDRV_MetaParam2( dev, META_OFFSETVIEWPORTORG, x, y );
80 }
81
82
83 /***********************************************************************
84  *           MFDRV_OffsetWindowOrgEx
85  */
86 BOOL CDECL MFDRV_OffsetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
87 {
88     return MFDRV_MetaParam2( dev, META_OFFSETWINDOWORG, x, y );
89 }
90
91
92 /***********************************************************************
93  *           MFDRV_ScaleViewportExtEx
94  */
95 BOOL CDECL MFDRV_ScaleViewportExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
96 {
97     return MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom );
98 }
99
100
101 /***********************************************************************
102  *           MFDRV_ScaleWindowExtEx
103  */
104 BOOL CDECL MFDRV_ScaleWindowExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
105 {
106     return MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom );
107 }