ReactOS  0.4.14-dev-342-gdc047f9
globals.h
Go to the documentation of this file.
1 #ifndef GLOBALS_INCLUDED
2 #define GLOBALS_INCLUDED
3 
4 #ifdef __cplusplus
5 extern "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 
36 extern int g_nFontSize;
37 extern TCHAR g_szFontName[];
38 extern BOOL g_fFontBold;
39 extern int g_nNumMessages;
40 extern int g_nCurrentMessage;
41 extern int g_nMessageSpeed;
42 extern int g_nMatrixSpeed;
43 extern int g_nDensity;
45 extern HFONT g_hFont;
46 extern BOOL g_fScreenSaving;
47 
48 void LoadSettings();
49 void SaveSettings();
50 
53 
56 
57 int crc_rand();
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define MAX_MESSAGES
Definition: globals.h:30
TCHAR g_szMessages[MAX_MESSAGES][MAXMSG_LENGTH]
Definition: settings.c:13
BOOL ChangePassword(HWND hwnd)
Definition: password.c:48
int g_nNumMessages
Definition: settings.c:14
#define MAXMSG_LENGTH
Definition: globals.h:25
TCHAR g_szFontName[]
Definition: settings.c:16
unsigned int BOOL
Definition: ntddk_ex.h:94
static HWND hwndParent
Definition: cryptui.c:300
int g_nMessageSpeed
Definition: settings.c:15
int crc_rand()
Definition: matrix.c:18
char TCHAR
Definition: xmlstorage.h:189
int g_nFontSize
Definition: settings.c:20
BOOL g_fFontBold
Definition: settings.c:22
BOOL Configure(HWND hwndParent)
Definition: config.c:291
BOOL g_fRandomizeMessages
Definition: settings.c:21
BOOL VerifyPassword(HWND hwnd)
Definition: password.c:12
void SaveSettings()
Definition: settings.c:113
HFONT g_hFont
Definition: settings.c:25
int g_nMatrixSpeed
Definition: settings.c:18
void LoadSettings()
Definition: settings.c:53
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
int g_nCurrentMessage
BOOL ScreenSaver(HWND hwndParent)
Definition: screensave.c:51
int g_nDensity
Definition: settings.c:19
BOOL g_fScreenSaving
Definition: settings.c:23