ReactOS 0.4.15-dev-8135-g1bc6c90
globals.h
Go to the documentation of this file.
1#ifndef GLOBALS_INCLUDED
2#define GLOBALS_INCLUDED
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define APPNAME _T("MATRIX ScreenSaver 2.0")
9
10#define DENSITY 24
11#define DENSITY_MAX 50
12#define DENSITY_MIN 5
13
14// constants inferred from matrix.bmp
15#define MAX_INTENSITY 5 // number of intensity levels
16#define NUM_GLYPHS 26 // number of "glyphs" in each level
17#define GLYPH_WIDTH 14 // width of each glyph (pixels)
18#define GLYPH_HEIGHT 14 // height of each glyph (pixels)
19
20#define SPEED_MAX 10
21#define SPEED_MIN 1
22
23#define MAXMSG_WIDTH 0x100
24#define MAXMSG_HEIGHT 0x100
25#define MAXMSG_LENGTH 64
26
27#define MSGSPEED_MAX 500
28#define MSGSPEED_MIN 50
29
30#define MAX_MESSAGES 16
31
32#define FONT_MIN 8
33#define FONT_MAX 30
34
36extern int g_nFontSize;
37extern TCHAR g_szFontName[];
38extern BOOL g_fFontBold;
39extern int g_nNumMessages;
40extern int g_nCurrentMessage;
41extern int g_nMessageSpeed;
42extern int g_nMatrixSpeed;
43extern int g_nDensity;
45extern HFONT g_hFont;
47
48void LoadSettings();
49void SaveSettings();
50
53
56
57int crc_rand();
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
static HWND hwndParent
Definition: cryptui.c:300
unsigned int BOOL
Definition: ntddk_ex.h:94
int g_nNumMessages
Definition: settings.c:14
BOOL VerifyPassword(HWND hwnd)
Definition: password.c:12
#define MAX_MESSAGES
Definition: globals.h:30
#define MAXMSG_LENGTH
Definition: globals.h:25
void LoadSettings()
Definition: settings.c:53
BOOL g_fRandomizeMessages
Definition: settings.c:21
TCHAR g_szMessages[MAX_MESSAGES][MAXMSG_LENGTH]
Definition: settings.c:13
int g_nMatrixSpeed
Definition: settings.c:18
BOOL g_fFontBold
Definition: settings.c:22
BOOL g_fScreenSaving
Definition: settings.c:23
BOOL Configure(HWND hwndParent)
Definition: config.c:291
void SaveSettings()
Definition: settings.c:115
TCHAR g_szFontName[]
Definition: settings.c:16
BOOL ChangePassword(HWND hwnd)
Definition: password.c:48
int g_nFontSize
Definition: settings.c:20
int g_nMessageSpeed
Definition: settings.c:15
int g_nCurrentMessage
BOOL ScreenSaver(HWND hwndParent)
Definition: screensave.c:51
int crc_rand()
Definition: matrix.c:18
int g_nDensity
Definition: settings.c:19
HFONT g_hFont
Definition: settings.c:25
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
char TCHAR
Definition: xmlstorage.h:189