#include <windows.h>
#include <windowsx.h>
#include <tchar.h>
#include "globals.h"
#include "message.h"
#include "matrix.h"
#include "resource.h"
Go to the source code of this file.
|
void | DoMatrixMessage (HDC hdc, MATRIX *matrix) |
|
int | crc_rand () |
|
int | GlyphIntensity (GLYPH glyph) |
|
GLYPH | DarkenGlyph (GLYPH glyph) |
|
GLYPH | RandomGlyph (int intensity) |
|
void | RedrawBlip (GLYPH *glypharr, int blippos) |
|
void | ScrollMatrixColumn (MATRIX_COLUMN *col) |
|
void | RandomMatrixColumn (MATRIX_COLUMN *col) |
|
void | DrawGlyph (MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph) |
|
void | RedrawMatrixColumn (MATRIX_COLUMN *col, MATRIX *matrix, HDC hdc, int xpos) |
|
void | DecodeMatrix (HWND hwnd, MATRIX *matrix) |
|
MATRIX * | CreateMatrix (HWND hwnd, int width, int height) |
|
void | DestroyMatrix (MATRIX *matrix) |
|
MATRIX * | GetMatrix (HWND hwnd) |
|
void | SetMatrix (HWND hwnd, MATRIX *matrix) |
|
LRESULT WINAPI | MatrixWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
|
HWND | CreateScreenSaveWnd (HWND hwndParent, RECT *rect) |
|
void | InitScreenSaveClass (BOOL fPreview) |
|
◆ crc_rand()
◆ CreateMatrix()
Definition at line 222 of file matrix.c.
223{
227
230
231
233 return 0;
234
239
240 for(
x = 0;
x < cols;
x++)
241 {
242 matrix->column[
x].length = rows;
247
249
250 for(
y = 0;
y < rows;
y++)
252 }
253
254
260
261
262
265 else
267
269}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
MATRIX_MESSAGE * InitMatrixMessage(HWND hwnd, int width, int height)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
HWND WINAPI GetParent(_In_ HWND)
Referenced by DECLARE_INTERFACE_(), and MatrixWndProc().
◆ CreateScreenSaveWnd()
Definition at line 390 of file matrix.c.
391{
393
394#ifdef _DEBUG
396#else
398#endif
399
402
405 0,
412 0,
414 0
415 );
416}
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by MonitorEnumProc().
◆ DarkenGlyph()
Definition at line 35 of file matrix.c.
36{
38
39 if(intensity > 0)
40 return GLYPH_REDRAW | ((intensity - 1) << 8) | (glyph & 0x00FF);
41 else
42 return glyph;
43}
int GlyphIntensity(GLYPH glyph)
Referenced by ScrollMatrixColumn().
◆ DecodeMatrix()
Definition at line 201 of file matrix.c.
202{
205
207 {
211 }
212
215
217}
void ScrollMatrixColumn(MATRIX_COLUMN *col)
void DoMatrixMessage(HDC hdc, MATRIX *matrix)
void RedrawMatrixColumn(MATRIX_COLUMN *col, MATRIX *matrix, HDC hdc, int xpos)
void RandomMatrixColumn(MATRIX_COLUMN *col)
Referenced by MatrixWndProc().
◆ DestroyMatrix()
Definition at line 274 of file matrix.c.
275{
277
278
281
284
285
287}
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by MatrixWndProc().
◆ 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().
◆ DrawGlyph()
Definition at line 167 of file matrix.c.
168{
170 int glyphidx = glyph & 0xff;
171
174}
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
Referenced by DrawMatrixMessage(), and RedrawMatrixColumn().
◆ GetMatrix()
◆ GlyphIntensity()
◆ InitScreenSaveClass()
void InitScreenSaveClass |
( |
BOOL |
fPreview | ) |
|
Definition at line 421 of file matrix.c.
422{
424
436
437 if(fPreview)
439 else
441
442
444
446}
DWORD WINAPI GetTickCount(VOID)
LRESULT WINAPI MatrixWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
HGDIOBJ WINAPI GetStockObject(_In_ int)
◆ MatrixWndProc()
Definition at line 302 of file matrix.c.
303{
305 static POINT ptCursor;
307
309
311 {
312
314
315
317
318
321
323
324
326
328
329
333 return 0;
334
335
338 return 0;
339
340
344 return 0;
345
346
354
355
357 return 0;
358
359 if(fFirstTime)
360 {
363 }
364
366
367
368 if(
abs(ptCursor.
x - ptLast.
x) >= 3 ||
abs(ptCursor.
y - ptLast.
y) >= 3)
370
371 ptLast = ptCursor;
372
373 return 0;
374
375
377
379 {
382 }
383
384 return 0;
385 }
386
388}
BOOL VerifyPassword(HWND hwnd)
void DecodeMatrix(HWND hwnd, MATRIX *matrix)
void DestroyMatrix(MATRIX *matrix)
MATRIX * GetMatrix(HWND hwnd)
MATRIX * CreateMatrix(HWND hwnd, int width, int height)
_Out_opt_ int _Out_opt_ int * cy
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
Referenced by InitScreenSaveClass().
◆ RandomGlyph()
◆ RandomMatrixColumn()
Definition at line 147 of file matrix.c.
148{
150
151 for(
i = 1,
y = 0;
i < 16;
i++)
152 {
153
156
158 break;
159
162
164 }
165}
GLuint GLsizei GLsizei * length
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by DecodeMatrix().
◆ RedrawBlip()
◆ RedrawMatrixColumn()
Definition at line 176 of file matrix.c.
177{
179
180
182 {
184
185
187 {
192
194
195
196 col->
glyph[
y] &= ~GLYPH_REDRAW;
197 }
198 }
199}
void DrawGlyph(MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph)
Referenced by DecodeMatrix().
◆ ScrollMatrixColumn()
Definition at line 58 of file matrix.c.
59{
63
64
66 {
69
70 return;
71 }
72
73
75
76
77
78
79
80
82 {
84
85
86
87
90 {
93 }
94
95
96
98 {
100
101
102
105 }
106
107 lastglyph = col->
glyph[
y];
108 }
109
110
112 {
115 else
117 }
118
119
120
121
122
123
126
127
129
130
131
133 {
136 }
137
138
141
142}
void RedrawBlip(GLYPH *glypharr, int blippos)
GLYPH RandomGlyph(int intensity)
GLYPH DarkenGlyph(GLYPH glyph)
Referenced by DecodeMatrix().
◆ SetMatrix()
◆ _crc_reg