ReactOS 0.4.16-dev-297-gc569aee
fill.c File Reference
#include <windows.h>
#include "rosperf.h"
Include dependency graph for fill.c:

Go to the source code of this file.

Macros

#define SMALL_SIZE   16
 

Functions

void FillProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps)
 
void FillSmallProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps)
 

Macro Definition Documentation

◆ SMALL_SIZE

#define SMALL_SIZE   16

Function Documentation

◆ FillProc()

void FillProc ( void Context,
PPERF_INFO  PerfInfo,
unsigned  Reps 
)

Definition at line 23 of file fill.c.

24{
25 unsigned Rep;
26
27 for (Rep = 0; Rep < Reps; Rep++)
28 {
29 PatBlt((Rep & 0x100) ? PerfInfo->BackgroundDc : PerfInfo->ForegroundDc, 0, 0,
30 PerfInfo->WndWidth, PerfInfo->WndHeight, PATCOPY);
31 }
32}
INT WndHeight
Definition: rosperf.h:32
HDC BackgroundDc
Definition: rosperf.h:30
HDC ForegroundDc
Definition: rosperf.h:29
INT WndWidth
Definition: rosperf.h:31
#define PATCOPY
Definition: wingdi.h:335
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)

◆ FillSmallProc()

void FillSmallProc ( void Context,
PPERF_INFO  PerfInfo,
unsigned  Reps 
)

Definition at line 35 of file fill.c.

36{
37#define SMALL_SIZE 16
38 unsigned Rep;
39 int x, y;
40
41 x = 0;
42 y = 0;
43
44 for (Rep = 0; Rep < Reps; Rep++)
45 {
46 PatBlt((Rep & 0x10000) ? PerfInfo->BackgroundDc : PerfInfo->ForegroundDc, x, y,
48 x += SMALL_SIZE + 1;
49 if (PerfInfo->WndWidth < x + SMALL_SIZE)
50 {
51 x = 0;
52 y += SMALL_SIZE + 1;
53 if (PerfInfo->WndHeight < y + SMALL_SIZE)
54 {
55 y = 0;
56 }
57 }
58 }
59}
#define SMALL_SIZE
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548