ReactOS  0.4.13-dev-92-gf251225
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  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 right
Definition: polytest.cpp:53
GLuint color
Definition: glext.h:6243
long top
Definition: polytest.cpp:53
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
unsigned int ULONG
Definition: retypes.h:1

◆ 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 }
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 LONG
Definition: pedump.c:60
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:570
BYTE * PBYTE
Definition: pedump.c:66
PVOID pvScan0
Definition: winddi.h:1212

Referenced by DIB_32BPP_ColorFill().