ReactOS 0.4.15-dev-7704-gc07eb9f
init.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MYPAL
 

Functions

BOOL InitStuff (void)
 

Variables

HBITMAP ghbmp1
 
HBITMAP ghbmp4
 
HBITMAP ghbmp8
 
HBITMAP ghbmp16
 
HBITMAP ghbmp24
 
HBITMAP ghbmp32
 
HBITMAP ghbmpDIB1
 
HBITMAP ghbmpDIB4
 
HBITMAP ghbmpDIB8
 
HBITMAP ghbmpDIB16
 
HBITMAP ghbmpDIB24
 
HBITMAP ghbmpDIB32
 
HDC ghdcDIB1
 
HDC ghdcDIB4
 
HDC ghdcDIB8
 
HDC ghdcDIB16
 
HDC ghdcDIB24
 
HDC ghdcDIB32
 
PVOID gpvDIB1
 
PVOID gpvDIB4
 
PVOID gpvDIB8
 
PVOID gpvDIB16
 
PVOID gpvDIB24
 
PVOID gpvDIB32
 
PULONG pulDIB4Bits
 
HPALETTE ghpal
 
ULONG(* gpDIB32 )[8][8]
 
MYPAL gpal
 

Function Documentation

◆ InitStuff()

BOOL InitStuff ( void  )

Definition at line 95 of file init.c.

96{
97
98 /* Initialize a logical palette */
100 if (!ghpal)
101 {
102 printf("failed to create a palette\n");
103 return FALSE;
104 }
105
106 if (!InitPerBitDepth(1, 9, 9, &ghbmp1, &ghdcDIB1, &ghbmpDIB1, &gpvDIB1) ||
107 !InitPerBitDepth(4, 5, 5, &ghbmp4, &ghdcDIB4, &ghbmpDIB4, &gpvDIB4) ||
108 !InitPerBitDepth(8, 5, 5, &ghbmp8, &ghdcDIB8, &ghbmpDIB8, &gpvDIB8) ||
112 {
113 printf("failed to create objects\n");
114 return FALSE;
115 }
116
118
119 return TRUE;
120}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define printf
Definition: freeldr.h:94
HBITMAP ghbmp24
Definition: init.c:6
HBITMAP ghbmpDIB8
Definition: init.c:7
HBITMAP ghbmp4
Definition: init.c:6
BOOL InitPerBitDepth(_In_ ULONG cBitsPerPixel, _In_ ULONG cx, _In_ ULONG cy, _Out_ HBITMAP *phbmp, _Out_ HDC *phdcDIB, _Out_ HBITMAP *phbmpDIB, _Out_ PVOID *ppvBits)
Definition: init.c:29
HDC ghdcDIB8
Definition: init.c:8
PVOID gpvDIB8
Definition: init.c:9
HDC ghdcDIB16
Definition: init.c:8
HBITMAP ghbmpDIB24
Definition: init.c:7
ULONG(* gpDIB32)[8][8]
Definition: init.c:10
HBITMAP ghbmpDIB1
Definition: init.c:7
PVOID gpvDIB1
Definition: init.c:9
HDC ghdcDIB32
Definition: init.c:8
HPALETTE ghpal
Definition: init.c:11
HBITMAP ghbmpDIB16
Definition: init.c:7
HBITMAP ghbmp1
Definition: init.c:6
PVOID gpvDIB4
Definition: init.c:9
PVOID gpvDIB32
Definition: init.c:9
PVOID gpvDIB24
Definition: init.c:9
HDC ghdcDIB1
Definition: init.c:8
HBITMAP ghbmpDIB32
Definition: init.c:7
HBITMAP ghbmp8
Definition: init.c:6
MYPAL gpal
Definition: init.c:13
HDC ghdcDIB4
Definition: init.c:8
PVOID gpvDIB16
Definition: init.c:9
HBITMAP ghbmp32
Definition: init.c:6
HDC ghdcDIB24
Definition: init.c:8
HBITMAP ghbmp16
Definition: init.c:6
HBITMAP ghbmpDIB4
Definition: init.c:7
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)

Referenced by START_TEST().

Variable Documentation

◆ ghbmp1

HBITMAP ghbmp1
extern

Definition at line 6 of file init.c.

Referenced by InitStuff().

◆ ghbmp16

HBITMAP ghbmp16

Definition at line 3 of file init.h.

◆ ghbmp24

HBITMAP ghbmp24

Definition at line 3 of file init.h.

◆ ghbmp32

HBITMAP ghbmp32

Definition at line 3 of file init.h.

◆ ghbmp4

HBITMAP ghbmp4

Definition at line 3 of file init.h.

◆ ghbmp8

HBITMAP ghbmp8

Definition at line 3 of file init.h.

◆ ghbmpDIB1

HBITMAP ghbmpDIB1
extern

Definition at line 7 of file init.c.

Referenced by InitStuff().

◆ ghbmpDIB16

HBITMAP ghbmpDIB16

Definition at line 4 of file init.h.

◆ ghbmpDIB24

HBITMAP ghbmpDIB24

Definition at line 4 of file init.h.

◆ ghbmpDIB32

HBITMAP ghbmpDIB32

Definition at line 4 of file init.h.

◆ ghbmpDIB4

HBITMAP ghbmpDIB4

Definition at line 4 of file init.h.

◆ ghbmpDIB8

HBITMAP ghbmpDIB8

Definition at line 4 of file init.h.

◆ ghdcDIB1

HDC ghdcDIB1
extern

Definition at line 8 of file init.c.

Referenced by InitStuff(), and Test_PaintRgn().

◆ ghdcDIB16

HDC ghdcDIB16

Definition at line 5 of file init.h.

◆ ghdcDIB24

HDC ghdcDIB24

Definition at line 5 of file init.h.

◆ ghdcDIB32

HDC ghdcDIB32

Definition at line 5 of file init.h.

◆ ghdcDIB4

HDC ghdcDIB4

Definition at line 5 of file init.h.

◆ ghdcDIB8

HDC ghdcDIB8

Definition at line 5 of file init.h.

◆ ghpal

HPALETTE ghpal
extern

◆ gpal

MYPAL gpal
extern

Definition at line 13 of file init.c.

Referenced by InitStuff().

◆ gpDIB32

ULONG(* gpDIB32)[8][8]
extern

◆ gpvDIB1

PVOID gpvDIB1
extern

Definition at line 9 of file init.c.

Referenced by InitStuff(), and Test_PaintRgn().

◆ gpvDIB16

PVOID gpvDIB16

Definition at line 6 of file init.h.

◆ gpvDIB24

PVOID gpvDIB24

Definition at line 6 of file init.h.

◆ gpvDIB32

PVOID gpvDIB32

Definition at line 6 of file init.h.

◆ gpvDIB4

PVOID gpvDIB4

Definition at line 6 of file init.h.

◆ gpvDIB8

PVOID gpvDIB8

Definition at line 6 of file init.h.

◆ pulDIB4Bits

PULONG pulDIB4Bits
extern