Implement ResetDC and PHYSICALOFFSET[X|Y] devcaps.
[wine] / dlls / gdi / mfdrv / dc.c
1 /*
2  * MetaFile driver DC value functions
3  *
4  * Copyright 1999 Huw D M Davies
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "mfdrv/metafiledrv.h"
22
23 INT MFDRV_SaveDC( PHYSDEV dev )
24 {
25     return MFDRV_MetaParam0( dev, META_SAVEDC );
26 }
27
28 BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level )
29 {
30     if(level != -1) return FALSE;
31     return MFDRV_MetaParam1( dev, META_RESTOREDC, level );
32 }
33
34 UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align )
35 {
36     return MFDRV_MetaParam1( dev, META_SETTEXTALIGN, (WORD)align);
37 }
38
39 INT MFDRV_SetBkMode( PHYSDEV dev, INT mode )
40 {
41     return MFDRV_MetaParam1( dev, META_SETBKMODE, (WORD)mode);
42 }
43
44 INT MFDRV_SetROP2( PHYSDEV dev, INT rop )
45 {
46     return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop);
47 }
48
49 INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode )
50 {
51     return MFDRV_MetaParam1( dev, META_SETRELABS, (WORD)mode);
52 }
53
54 INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode )
55 {
56     return MFDRV_MetaParam1( dev, META_SETPOLYFILLMODE, (WORD)mode);
57 }
58
59 INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode )
60 {
61     return MFDRV_MetaParam1( dev, META_SETSTRETCHBLTMODE, (WORD)mode);
62 }
63
64 INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
65 {
66     return MFDRV_MetaParam4( dev, META_INTERSECTCLIPRECT, left, top, right,
67                              bottom );
68 }
69
70 INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
71 {
72     return MFDRV_MetaParam4( dev, META_EXCLUDECLIPRECT, left, top, right,
73                              bottom );
74 }
75
76 INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
77 {
78     return MFDRV_MetaParam2( dev, META_OFFSETCLIPRGN, x, y );
79 }
80
81 INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks )
82 {
83     return MFDRV_MetaParam2( dev, META_SETTEXTJUSTIFICATION, extra, breaks );
84 }
85
86 INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra )
87 {
88     return MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra );
89 }
90
91 DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags )
92 {
93     return MFDRV_MetaParam2( dev, META_SETMAPPERFLAGS, HIWORD(flags),
94                              LOWORD(flags) );
95 }
96
97 BOOL MFDRV_AbortPath( PHYSDEV dev )
98 {
99     return FALSE;
100 }
101
102 BOOL MFDRV_BeginPath( PHYSDEV dev )
103 {
104     return FALSE;
105 }
106
107 BOOL MFDRV_CloseFigure( PHYSDEV dev )
108 {
109     return FALSE;
110 }
111
112 BOOL MFDRV_EndPath( PHYSDEV dev )
113 {
114     return FALSE;
115 }
116
117 BOOL MFDRV_FillPath( PHYSDEV dev )
118 {
119     return FALSE;
120 }
121
122 BOOL MFDRV_FlattenPath( PHYSDEV dev )
123 {
124     return FALSE;
125 }
126
127 BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode )
128 {
129     return FALSE;
130 }
131
132 BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev )
133 {
134     return FALSE;
135 }
136
137 BOOL MFDRV_StrokePath( PHYSDEV dev )
138 {
139     return FALSE;
140 }
141
142 BOOL MFDRV_WidenPath( PHYSDEV dev )
143 {
144     return FALSE;
145 }