f196b0aa6c0d4c140d8b653faa53528ee110358c
1 #ifndef MATRIX_INCLUDED
2 #define MATRIX_INCLUDED
9 // Top BYTE of each glyph is used as flags
10 // (redraw state, intensity etc)
12 // Bottom BYTE of each glyph is the character value
14 // Bit: 15 14 13-8 | 7-0
16 // [Redraw][Blank][Intensity] [Glyph]
18 typedef unsigned short GLYPH
;
20 #define GLYPH_REDRAW 0x8000
21 #define GLYPH_BLANK 0x4000
24 // The "matrix" is basically an array of these
25 // column structures, positioned side-by-side
50 // bitmap containing glyphs.
54 MATRIX_MESSAGE
*message
;
56 MATRIX_COLUMN column
[1];
60 GLYPH
RandomGlyph(int intensity
);
61 void DrawGlyph(MATRIX
*matrix
, HDC hdc
, int xpos
, int ypos
, GLYPH glyph
);
63 HWND
CreateScreenSaveWnd(HWND hwndParent
, RECT
*rect
);
64 void InitScreenSaveClass();