wined3d: Get rid of wined3d_buffer_get_desc().
[wine] / dlls / gdi32 / 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include "mfdrv/metafiledrv.h"
22
23 INT  CDECL MFDRV_SaveDC( PHYSDEV dev )
24 {
25     return MFDRV_MetaParam0( dev, META_SAVEDC );
26 }
27
28 BOOL  CDECL MFDRV_RestoreDC( PHYSDEV dev, INT level )
29 {
30     return MFDRV_MetaParam1( dev, META_RESTOREDC, level );
31 }
32
33 UINT  CDECL MFDRV_SetTextAlign( PHYSDEV dev, UINT align )
34 {
35     return MFDRV_MetaParam2( dev, META_SETTEXTALIGN, HIWORD(align), LOWORD(align)) ? align : GDI_ERROR;
36 }
37
38 INT  CDECL MFDRV_SetBkMode( PHYSDEV dev, INT mode )
39 {
40     return MFDRV_MetaParam1( dev, META_SETBKMODE, (WORD)mode) ? mode : 0;
41 }
42
43 INT  CDECL MFDRV_SetROP2( PHYSDEV dev, INT rop )
44 {
45     return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop) ? rop : 0;
46 }
47
48 INT  CDECL MFDRV_SetRelAbs( PHYSDEV dev, INT mode )
49 {
50     return MFDRV_MetaParam1( dev, META_SETRELABS, (WORD)mode) ? mode : 0;
51 }
52
53 INT  CDECL MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode )
54 {
55     return MFDRV_MetaParam1( dev, META_SETPOLYFILLMODE, (WORD)mode) ? mode : 0;
56 }
57
58 INT  CDECL MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode )
59 {
60     return MFDRV_MetaParam1( dev, META_SETSTRETCHBLTMODE, (WORD)mode) ? mode : 0;
61 }
62
63 INT  CDECL MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
64 {
65     return MFDRV_MetaParam4( dev, META_INTERSECTCLIPRECT, left, top, right,
66                              bottom );
67 }
68
69 INT  CDECL MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
70 {
71     return MFDRV_MetaParam4( dev, META_EXCLUDECLIPRECT, left, top, right,
72                              bottom );
73 }
74
75 INT  CDECL MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
76 {
77     return MFDRV_MetaParam2( dev, META_OFFSETCLIPRGN, x, y );
78 }
79
80 BOOL CDECL MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks )
81 {
82     return MFDRV_MetaParam2( dev, META_SETTEXTJUSTIFICATION, extra, breaks );
83 }
84
85 INT  CDECL MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra )
86 {
87     return MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra ) ? extra : 0x80000000;
88 }
89
90 DWORD  CDECL MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags )
91 {
92     return MFDRV_MetaParam2( dev, META_SETMAPPERFLAGS, HIWORD(flags),
93                              LOWORD(flags) ) ? flags : GDI_ERROR;
94 }
95
96 BOOL  CDECL MFDRV_AbortPath( PHYSDEV dev )
97 {
98     return FALSE;
99 }
100
101 BOOL  CDECL MFDRV_BeginPath( PHYSDEV dev )
102 {
103     return FALSE;
104 }
105
106 BOOL  CDECL MFDRV_CloseFigure( PHYSDEV dev )
107 {
108     return FALSE;
109 }
110
111 BOOL  CDECL MFDRV_EndPath( PHYSDEV dev )
112 {
113     return FALSE;
114 }
115
116 BOOL  CDECL MFDRV_FillPath( PHYSDEV dev )
117 {
118     return FALSE;
119 }
120
121 BOOL  CDECL MFDRV_FlattenPath( PHYSDEV dev )
122 {
123     return FALSE;
124 }
125
126 BOOL  CDECL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode )
127 {
128     return FALSE;
129 }
130
131 BOOL  CDECL MFDRV_StrokeAndFillPath( PHYSDEV dev )
132 {
133     return FALSE;
134 }
135
136 BOOL  CDECL MFDRV_StrokePath( PHYSDEV dev )
137 {
138     return FALSE;
139 }
140
141 BOOL  CDECL MFDRV_WidenPath( PHYSDEV dev )
142 {
143     return FALSE;
144 }
145
146 COLORREF CDECL MFDRV_SetDCBrushColor( PHYSDEV dev, COLORREF color )
147 {
148     return CLR_INVALID;
149 }
150
151 COLORREF CDECL MFDRV_SetDCPenColor( PHYSDEV dev, COLORREF color )
152 {
153     return CLR_INVALID;
154 }