ReactOS  0.4.14-dev-390-g34947ad
dib32bppc.c
Go to the documentation of this file.
1 /*
2  * PROJECT: Win32 subsystem
3  * LICENSE: See COPYING in the top level directory
4  * FILE: win32ss/gdi/dib/dib32bppc.c
5  * PURPOSE: C language equivalents of asm optimised 32bpp functions
6  * PROGRAMMERS: Jason Filby
7  * Magnus Olsen
8  */
9 
10 #include <win32k.h>
11 
12 #define NDEBUG
13 #include <debug.h>
14 
15 VOID
17 {
18  PBYTE byteaddr = (PBYTE)((ULONG_PTR)SurfObj->pvScan0 + y * SurfObj->lDelta);
19  PDWORD addr = (PDWORD)byteaddr + x1;
20  LONG cx = x1;
21 
22  while(cx < x2)
23  {
24  *addr = (DWORD)c;
25  ++addr;
26  ++cx;
27  }
28 }
29 
30 BOOLEAN
31 DIB_32BPP_ColorFill(SURFOBJ* DestSurface, RECTL* DestRect, ULONG color)
32 {
33  ULONG DestY;
34 
35  for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
36  {
37  DIB_32BPP_HLine (DestSurface, DestRect->left, DestRect->right, DestY, color);
38  }
39 
40  return TRUE;
41 }
#define TRUE
Definition: types.h:120
LONG lDelta
Definition: winddi.h:1213
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
#define DWORD
Definition: nt_native.h:44
uint32_t ULONG_PTR
Definition: typedefs.h:63
long right
Definition: polytest.cpp:53
long LONG
Definition: pedump.c:60
GLuint color
Definition: glext.h:6243
long top
Definition: polytest.cpp:53
unsigned char BOOLEAN
GLint GLint bottom
Definition: glext.h:7726
long left
Definition: polytest.cpp:53
VOID DIB_32BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
Definition: dib32bppc.c:16
BOOLEAN DIB_32BPP_ColorFill(SURFOBJ *DestSurface, RECTL *DestRect, ULONG color)
Definition: dib32bppc.c:31
const GLubyte * c
Definition: glext.h:8905
GLenum const GLvoid * addr
Definition: glext.h:9621
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
DWORD * PDWORD
Definition: pedump.c:68
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
_Out_opt_ int * cx
Definition: commctrl.h:581
unsigned int ULONG
Definition: retypes.h:1
BYTE * PBYTE
Definition: pedump.c:66
PVOID pvScan0
Definition: winddi.h:1212