#include <windows.h>
#include "globals.h"
#include "message.h"
#include "matrix.h"
Go to the source code of this file.
|
WORD | crc_msgrand (WORD reg) |
|
void | SetMatrixMessage (MATRIX_MESSAGE *msg, HFONT hFont, TCHAR *text) |
|
void | DrawMatrixMessage (MATRIX *matrix, MATRIX_MESSAGE *msg, HDC hdc) |
|
void | RevealMatrixMessage (MATRIX_MESSAGE *msg, int amount) |
|
void | ClearMatrixMessage (MATRIX_MESSAGE *msg) |
|
int | MessageSpeed () |
|
void | DoMatrixMessage (HDC hdc, MATRIX *matrix) |
|
void | SetMessageFont (HWND hwnd, TCHAR *szFontName, int nPointSize, BOOL fBold) |
|
MATRIX_MESSAGE * | InitMatrixMessage (HWND hwnd, int width, int height) |
|
◆ ClearMatrixMessage()
◆ crc_msgrand()
◆ DoMatrixMessage()
Definition at line 149 of file message.c.
150{
152
154
156 {
157
158 if(
msg->counter++ < 0)
159 return;
160
161
162 if(
msg->counter++ == RealSpeed / 2 + (RealSpeed/4))
164
165
166 if(
msg->counter >= RealSpeed)
167 {
168
169
170
173 else
175
176
178
180 }
181
182 else if(
msg->counter < RealSpeed / 2)
183 {
187
189 }
190
191
192
193
195 }
196}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLubyte GLubyte GLubyte GLubyte w
BOOL g_fRandomizeMessages
TCHAR g_szMessages[MAX_MESSAGES][MAXMSG_LENGTH]
void RevealMatrixMessage(MATRIX_MESSAGE *msg, int amount)
void DrawMatrixMessage(MATRIX *matrix, MATRIX_MESSAGE *msg, HDC hdc)
void ClearMatrixMessage(MATRIX_MESSAGE *msg)
void SetMatrixMessage(MATRIX_MESSAGE *msg, HFONT hFont, TCHAR *text)
Referenced by DecodeMatrix().
◆ DrawMatrixMessage()
Definition at line 97 of file message.c.
98{
100
101 for(
x = 0;
x <
msg->width;
x++)
102 for(
y = 0;
y <
msg->height;
y++)
103 if((
msg->message[
x][
y] & 0x8000) &&
104 (
msg->message[
x][
y] & 0x00FF))
105 {
107 }
108}
GLYPH RandomGlyph(int intensity)
void DrawGlyph(MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph)
Referenced by DoMatrixMessage().
◆ InitMatrixMessage()
Definition at line 229 of file message.c.
230{
232
234 return 0;
235
237
242
244
246
248
250}
DWORD WINAPI GetTickCount(VOID)
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
void SetMessageFont(HWND hwnd, TCHAR *szFontName, int nPointSize, BOOL fBold)
Referenced by CreateMatrix().
◆ MessageSpeed()
◆ RevealMatrixMessage()
Definition at line 113 of file message.c.
114{
115 while(amount--)
116 {
118
120 pos =
msg->random_reg1 & 0xffff;
121
123 }
124}
WORD crc_msgrand(WORD reg)
Referenced by DoMatrixMessage().
◆ SetMatrixMessage()
Definition at line 38 of file message.c.
39{
43
46
48
49
50
51
53
57
59
60
61
62
65
68
71
72
73
74
75 for(
y = 0;
y <
msg->height;
y++)
76 {
77 for(
x = 0;
x <
msg->width;
x++)
78 {
80 }
81 }
82
83
84
85
88
91}
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
Referenced by DoMatrixMessage(), and InitMatrixMessage().
◆ SetMessageFont()
Definition at line 201 of file message.c.
202{
203 int lfHeight;
206
208
210
212
216
218 {
221
223 }
224}
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define ANTIALIASED_QUALITY
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define OUT_DEFAULT_PRECIS
#define CLIP_DEFAULT_PRECIS
Referenced by InitMatrixMessage(), and UpdatePreview().