|
|
1.1 root 1: /*----------------------------------------------------------------------*/
2: /* */
3: /* PACMAN for BBN BitGraphs */
4: /* */
5: /* File: blt.c68 */
6: /* Contents: block transfer routines */
7: /* Author: Bob Brown (rlb) */
8: /* Purdue CS */
9: /* Date: May, 1982 */
10: /* Description: see below, customized for pacman */
11: /* */
12: /*----------------------------------------------------------------------*/
13:
14: #include "style.h"
15: #include "pacman.h"
16:
17: /*
18: ** block transfer routines - customized for pacman
19: **
20: ** blt24 - copies a 24x24 font character to the screen
21: ** blt40 - copies a 40x40 font character to the screen
22: **
23: ** opcode:
24: ** REPLACE ... replace mode
25: ** PAINT ..... or in
26: ** INVERT .... xor in
27: */
28:
29: extern Bitmap Bitmap24,Bitmap40;
30:
31: blt24(chr, row, col, opcode)
32: char chr;
33: int row,col;
34: int opcode;
35: {
36: bitblt(&Bitmap24,Rect(24*(chr-'a'),0,24*(chr-'a'+1),24),&display,Pt(col*8+8,row*8+60),(opcode==REPLACE)?F_STORE:F_XOR);
37: }
38: /*
39: ** Forty-bit font blt.
40: */
41: blt40(chr, row, col, opcode)
42: char chr;
43: int row,col;
44: int opcode;
45: {
46: bitblt(&Bitmap40,Rect(40*(chr-'a'),0,40*(chr-'a'+1),40),&display,Pt(col*8,row*8+52),F_XOR);
47: }
48:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.