ReactOS  0.4.14-dev-317-g96040ec
dc.c
Go to the documentation of this file.
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 
24 {
25  return MFDRV_MetaParam0( dev, META_SAVEDC );
26 }
27 
29 {
31 }
32 
34 {
36 }
37 
39 {
40  return MFDRV_MetaParam1( dev, META_SETBKMODE, (WORD)mode) ? mode : 0;
41 }
42 
44 {
46 }
47 
49 {
51 }
52 
54 {
55  return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop) ? rop : 0;
56 }
57 
59 {
60  return MFDRV_MetaParam1( dev, META_SETRELABS, (WORD)mode) ? mode : 0;
61 }
62 
64 {
66 }
67 
69 {
71 }
72 
74 {
76 }
77 
79 {
81 }
82 
84 {
86 }
87 
89 {
91 }
92 
94 {
96 }
97 
99 {
101 }
102 
104 {
106 }
107 
109 {
111 }
112 
114 {
116 }
117 
119 {
121 }
122 
123 BOOL MFDRV_ScaleViewportExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
124 {
125  return MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom );
126 }
127 
128 BOOL MFDRV_ScaleWindowExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
129 {
130  return MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom );
131 }
132 
134 {
136 }
137 
139 {
140  return MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra ) ? extra : 0x80000000;
141 }
142 
144 {
146 }
147 
149 {
150  return FALSE;
151 }
152 
154 {
155  return FALSE;
156 }
157 
159 {
160  return FALSE;
161 }
162 
164 {
165  return FALSE;
166 }
167 
169 {
170  return FALSE;
171 }
172 
174 {
175  return FALSE;
176 }
177 
179 {
180  return FALSE;
181 }
182 
184 {
185  return FALSE;
186 }
187 
189 {
190  return FALSE;
191 }
192 
194 {
195  return FALSE;
196 }
197 
199 {
200  return CLR_INVALID;
201 }
202 
204 {
205  return CLR_INVALID;
206 }
#define META_SETPOLYFILLMODE
Definition: wingdi.h:215
#define META_RESTOREDC
Definition: wingdi.h:248
#define META_SCALEVIEWPORTEXT
Definition: wingdi.h:227
GLint level
Definition: gl.h:1546
BOOL MFDRV_OffsetViewportOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:113
#define META_SETROP2
Definition: wingdi.h:213
_In_ ULONG iMode
Definition: winddi.h:3520
BOOL MFDRV_StrokePath(PHYSDEV dev)
Definition: dc.c:188
#define META_SETSTRETCHBLTMODE
Definition: wingdi.h:216
COLORREF MFDRV_SetDCBrushColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:198
#define META_OFFSETWINDOWORG
Definition: wingdi.h:224
#define pt(x, y)
Definition: drawing.c:79
#define META_SETTEXTCHAREXTRA
Definition: wingdi.h:217
BOOL MFDRV_SetWindowExtEx(PHYSDEV dev, INT x, INT y, SIZE *size)
Definition: dc.c:103
#define CLR_INVALID
Definition: wingdi.h:882
BOOL MFDRV_StrokeAndFillPath(PHYSDEV dev)
Definition: dc.c:183
#define META_SETVIEWPORTORG
Definition: wingdi.h:222
#define META_SAVEDC
Definition: wingdi.h:239
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL MFDRV_ScaleViewportExtEx(PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size)
Definition: dc.c:123
INT MFDRV_ExcludeClipRect(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
Definition: dc.c:78
int align(int length, int align)
Definition: dsound8.c:36
BOOL MFDRV_RestoreDC(PHYSDEV dev, INT level)
Definition: dc.c:28
int32_t INT
Definition: typedefs.h:56
INT MFDRV_SetROP2(PHYSDEV dev, INT rop)
Definition: dc.c:53
BOOL MFDRV_FlattenPath(PHYSDEV dev)
Definition: dc.c:173
#define META_SETVIEWPORTEXT
Definition: wingdi.h:223
BOOL MFDRV_OffsetWindowOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:118
BOOL MFDRV_SetViewportExtEx(PHYSDEV dev, INT x, INT y, SIZE *size)
Definition: dc.c:93
BOOL MFDRV_FillPath(PHYSDEV dev)
Definition: dc.c:168
#define META_SETBKMODE
Definition: wingdi.h:211
#define META_SETMAPPERFLAGS
Definition: wingdi.h:257
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL MFDRV_MetaParam1(PHYSDEV dev, short func, short param1)
Definition: init.c:532
BOOL MFDRV_MetaParam0(PHYSDEV dev, short func)
Definition: init.c:518
#define META_OFFSETCLIPRGN
Definition: wingdi.h:241
GLuint color
Definition: glext.h:6243
BOOL MFDRV_CloseFigure(PHYSDEV dev)
Definition: dc.c:158
static int rop(int rop, int src, int dst)
Definition: nanoxwin.c:124
#define META_SETTEXTCOLOR
Definition: wingdi.h:218
INT MFDRV_SetBkMode(PHYSDEV dev, INT mode)
Definition: dc.c:38
#define META_OFFSETVIEWPORTORG
Definition: wingdi.h:226
COLORREF MFDRV_SetBkColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:43
GLint GLint bottom
Definition: glext.h:7726
#define META_SETWINDOWORG
Definition: wingdi.h:220
COLORREF MFDRV_SetTextColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:48
BOOL MFDRV_EndPath(PHYSDEV dev)
Definition: dc.c:163
INT MFDRV_SetPolyFillMode(PHYSDEV dev, INT mode)
Definition: dc.c:63
GLsizeiptr size
Definition: glext.h:5919
BOOL MFDRV_SetWindowOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:108
#define META_EXCLUDECLIPRECT
Definition: wingdi.h:230
INT MFDRV_IntersectClipRect(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
Definition: dc.c:73
Definition: id3.c:18
INT MFDRV_SetRelAbs(PHYSDEV dev, INT mode)
Definition: dc.c:58
DWORD COLORREF
Definition: windef.h:285
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL MFDRV_SelectClipPath(PHYSDEV dev, INT iMode)
Definition: dc.c:178
GLint left
Definition: glext.h:7726
#define META_SCALEWINDOWEXT
Definition: wingdi.h:225
GLdouble GLdouble right
Definition: glext.h:10859
GLbitfield flags
Definition: glext.h:7161
DWORD MFDRV_SetMapperFlags(PHYSDEV dev, DWORD flags)
Definition: dc.c:143
#define META_SETTEXTJUSTIFICATION
Definition: wingdi.h:219
#define META_SETRELABS
Definition: wingdi.h:214
INT MFDRV_SetTextCharacterExtra(PHYSDEV dev, INT extra)
Definition: dc.c:138
GLenum mode
Definition: glext.h:6217
BOOL MFDRV_SetTextJustification(PHYSDEV dev, INT extra, INT breaks)
Definition: dc.c:133
#define META_SETTEXTALIGN
Definition: wingdi.h:255
BOOL MFDRV_MetaParam2(PHYSDEV dev, short func, short param1, short param2)
Definition: init.c:548
UINT MFDRV_SetTextAlign(PHYSDEV dev, UINT align)
Definition: dc.c:33
#define META_SETMAPMODE
Definition: wingdi.h:212
INT MFDRV_SaveDC(PHYSDEV dev)
Definition: dc.c:23
BOOL MFDRV_SetViewportOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:98
INT MFDRV_SetMapMode(PHYSDEV dev, INT mode)
Definition: dc.c:88
unsigned int UINT
Definition: ndis.h:50
BOOL MFDRV_BeginPath(PHYSDEV dev)
Definition: dc.c:153
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
COLORREF MFDRV_SetDCPenColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:203
#define META_SETBKCOLOR
Definition: wingdi.h:210
#define HIWORD(l)
Definition: typedefs.h:246
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:10859
BOOL MFDRV_MetaParam4(PHYSDEV dev, short func, short param1, short param2, short param3, short param4)
Definition: init.c:566
#define META_INTERSECTCLIPRECT
Definition: wingdi.h:231
BOOL MFDRV_ScaleWindowExtEx(PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size)
Definition: dc.c:128
#define GDI_ERROR
Definition: wingdi.h:1308
BOOL MFDRV_WidenPath(PHYSDEV dev)
Definition: dc.c:193
#define META_SETWINDOWEXT
Definition: wingdi.h:221
#define LOWORD(l)
Definition: pedump.c:82
BOOL MFDRV_AbortPath(PHYSDEV dev)
Definition: dc.c:148
INT MFDRV_SetStretchBltMode(PHYSDEV dev, INT mode)
Definition: dc.c:68
INT MFDRV_OffsetClipRgn(PHYSDEV dev, INT x, INT y)
Definition: dc.c:83