#include <vgaddi.h>
#include "brush.h"
Go to the source code of this file.
|
BOOL | VGADDIFillSolid (SURFOBJ *Surface, RECTL Dimensions, ULONG iColor) |
|
BOOL | VGADDIPaintRgn (IN SURFOBJ *Surface, IN CLIPOBJ *ClipRegion, IN ULONG iColor, IN MIX Mix, IN BRUSHINST *BrushInst, IN POINTL *BrushPoint) |
|
BOOL APIENTRY | DrvPaint (IN SURFOBJ *Surface, IN CLIPOBJ *ClipRegion, IN BRUSHOBJ *Brush, IN POINTL *BrushOrigin, IN MIX Mix) |
|
◆ DrvPaint()
Definition at line 184 of file paint.c.
190{
192
193 iSolidColor =
Brush->iSolidColor;
194
195
196
197
198
199
200
202
203 if ((Mix & 0xFF) == ((Mix >> 8) & 0xFF))
204 {
205 switch (Mix & 0xFF)
206 {
207 case 0:
208 break;
209
210
211
212
225
226
230
231
232
233
236
237 default:
238 break;
239 }
240 }
241
242
243
244
245
246
247
248
249
250
251
252}
BOOL VGADDIPaintRgn(IN SURFOBJ *Surface, IN CLIPOBJ *ClipRegion, IN ULONG iColor, IN MIX Mix, IN BRUSHINST *BrushInst, IN POINTL *BrushPoint)
◆ VGADDIFillSolid()
Definition at line 13 of file paint.c.
14{
16 ULONG orgx, pre1, midpre1, tmppre1;
17
18 int ileftpix, imidpix, irightpix;
19
20
21
23 {
26 }
27 else
28 {
31 }
33 {
36 }
37 else
38 {
41 }
42
43
46
47 DPRINT(
"VGADDIFillSolid: x:%d, y:%d, w:%d, h:%d\n",
x,
y,
w,
h);
48
49
50
51
52
54
55
56 ileftpix = 7 -
mod8(
x-1);
58 imidpix = (
w-ileftpix-irightpix) / 8;
59
61
62
63
64 if ( (ileftpix+irightpix) >
w )
65 {
67
70
71 tmppre1 = pre1;
72 for (
j =
y;
j <
y+
h;
j++ )
73 {
76 tmppre1 += 80;
77 }
79 }
80
81 if ( ileftpix > 0 )
82 {
83
86
87 tmppre1 = pre1;
88 for (
j =
y;
j <
y+
h;
j++ )
89 {
92 tmppre1 += 80;
93 }
94
95
97 }
98
99 if ( imidpix > 0 )
100 {
102
103
105
107
108 for (
j =
y;
j <
y+
h;
j++ )
109 {
111 midpre1 += 80;
112 }
113 }
114
115 x = orgx +
w - irightpix;
117
118
121
122 for (
j =
y;
j <
y+
h;
j++ )
123 {
126 pre1 += 80;
127 }
128
130}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define WRITE_PORT_UCHAR(p, d)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
Referenced by VGADDIPaintRgn().
◆ VGADDIPaintRgn()
Definition at line 132 of file paint.c.
139{
142
143 DPRINT(
"VGADDIPaintRgn: iMode: %d, iDComplexity: %d\n Color:%d\n", ClipRegion->iMode, ClipRegion->iDComplexity,
iColor);
144 switch(ClipRegion->iMode)
145 {
147
148
149
150
151
152 if (ClipRegion->iDComplexity ==
DC_RECT)
153 {
154 DPRINT(
"VGADDIPaintRgn Rect:%d %d %d %d\n", ClipRegion->rclBounds.left, ClipRegion->rclBounds.top, ClipRegion->rclBounds.right, ClipRegion->rclBounds.bottom);
156 }
157 else
158 {
159
160
162
163 do
164 {
167 DPRINT(
"EnumMore: %d, count: %d\n", EnumMore, RectEnum.
c);
168 for(
i=0;
i<RectEnum.
c;
i++)
169 {
172 }
173 } while (EnumMore);
174 }
176
177 default:
179 }
180}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
RECTL arcl[ENUM_RECT_LIMIT]
BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
ENGAPI BOOL APIENTRY CLIPOBJ_bEnum(_In_ CLIPOBJ *pco, _In_ ULONG cj, _Out_bytecap_(cj) ULONG *pul)
ENGAPI ULONG APIENTRY CLIPOBJ_cEnumStart(_Inout_ CLIPOBJ *pco, _In_ BOOL bAll, _In_ ULONG iType, _In_ ULONG iDirection, _In_ ULONG cLimit)
Referenced by DrvPaint().