ReactOS 0.4.16-dev-297-gc569aee
dib32bppc.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for dib32bppc.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID DIB_32BPP_HLine (SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
 
BOOLEAN DIB_32BPP_ColorFill (SURFOBJ *DestSurface, RECTL *DestRect, ULONG color)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file dib32bppc.c.

Function Documentation

◆ DIB_32BPP_ColorFill()

BOOLEAN DIB_32BPP_ColorFill ( SURFOBJ DestSurface,
RECTL DestRect,
ULONG  color 
)

Definition at line 31 of file dib32bppc.c.

32{
33 ULONG DestY;
34
35 /* Make WellOrdered by making top < bottom and left < right */
36 RECTL_vMakeWellOrdered(DestRect);
37
38 for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
39 {
40 DIB_32BPP_HLine (DestSurface, DestRect->left, DestRect->right, DestY, color);
41 }
42
43 return TRUE;
44}
VOID DIB_32BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
Definition: dib32bppc.c:16
#define TRUE
Definition: types.h:120
GLuint color
Definition: glext.h:6243
GLint GLint bottom
Definition: glext.h:7726
long right
Definition: polytest.cpp:53
long top
Definition: polytest.cpp:53
long left
Definition: polytest.cpp:53
uint32_t ULONG
Definition: typedefs.h:59
VOID FASTCALL RECTL_vMakeWellOrdered(_Inout_ RECTL *prcl)
Definition: rect.c:81

◆ DIB_32BPP_HLine()

VOID DIB_32BPP_HLine ( SURFOBJ SurfObj,
LONG  x1,
LONG  x2,
LONG  y,
ULONG  c 
)

Definition at line 16 of file dib32bppc.c.

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}
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
const GLubyte * c
Definition: glext.h:8905
GLenum const GLvoid * addr
Definition: glext.h:9621
#define DWORD
Definition: nt_native.h:44
BYTE * PBYTE
Definition: pedump.c:66
DWORD * PDWORD
Definition: pedump.c:68
long LONG
Definition: pedump.c:60
_Out_opt_ int * cx
Definition: commctrl.h:585
PVOID pvScan0
Definition: winddi.h:1212
LONG lDelta
Definition: winddi.h:1213
uint32_t ULONG_PTR
Definition: typedefs.h:65
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3710
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3708

Referenced by DIB_32BPP_ColorFill().