add level component saving functions which use PhysicsFS (didn't commit properly...
[btb/d2x.git] / ChangeLog-old
1 This file contains the per-file change logs from the Descent I for PC,
2 Descent I for Mac, and Descent II source releases, converted to "cvs
3 log" style.
4
5 RCS file: /Smoke/miner/source/2d/bitmap.c,v
6 Working file: 2d/bitmap.c
7 head: 1.11
8 description: Graphical routines for manipulating grs_bitmaps.
9 ----------------------------
10 revision 1.11
11 date: 1995/08/23 18:46:06;  author: allender;  state: Exp;
12 fixed compiler warning
13 ----------------------------
14 revision 1.10
15 date: 1995/08/14 14:25:45;  author: allender;  state: Exp;
16 changed transparency color to 0
17 ----------------------------
18 revision 1.9
19 date: 1995/07/05 16:04:51;  author: allender;  state: Exp;
20 transparency/game kitchen changes
21 ----------------------------
22 revision 1.8
23 date: 1995/06/15 09:50:48;  author: allender;  state: Exp;
24 new malloc to align bitmap on 8 byte bountry
25 ----------------------------
26 revision 1.7
27 date: 1995/05/12 11:52:19;  author: allender;  state: Exp;
28 changed memory stuff again
29 ----------------------------
30 revision 1.6
31 date: 1995/05/11 12:48:34;  author: allender;  state: Exp;
32 nge transparency color
33 ----------------------------
34 revision 1.5
35 date: 1995/05/04 19:59:21;  author: allender;  state: Exp;
36 use NewPtr instead of malloc
37 ----------------------------
38 revision 1.4
39 date: 1995/04/27 07:33:04;  author: allender;  state: Exp;
40 rearrange functions
41 ----------------------------
42 revision 1.3
43 date: 1995/04/19 14:37:17;  author: allender;  state: Exp;
44 removed dead asm code
45 ----------------------------
46 revision 1.2
47 date: 1995/04/18 12:04:51;  author: allender;  state: Exp;
48 *** empty log message ***
49 ----------------------------
50 revision 1.1
51 date: 1995/03/09 08:48:06;  author: allender;  state: Exp;
52 Initial revision
53 ----------------------------
54 revision 1.17
55 date: 1994/11/18 22:50:25;  author: john;  state: Exp;
56 Changed shorts to ints in parameters.
57 ----------------------------
58 revision 1.16
59 date: 1994/11/10 15:59:46;  author: john;  state: Exp;
60 Fixed bugs with canvas's being created with bogus bm_flags.
61 ----------------------------
62 revision 1.15
63 date: 1994/10/26 23:55:53;  author: john;  state: Exp;
64 Took out roller; Took out inverse table.
65 ----------------------------
66 revision 1.14
67 date: 1994/09/19 14:40:21;  author: john;  state: Exp;
68 Changed dpmi stuff.
69 ----------------------------
70 revision 1.13
71 date: 1994/09/19 11:44:04;  author: john;  state: Exp;
72 Changed call to allocate selector to the dpmi module.
73 ----------------------------
74 revision 1.12
75 date: 1994/06/09 13:14:57;  author: john;  state: Exp;
76 Made selectors zero our
77 out, I meant.
78 ----------------------------
79 revision 1.11
80 date: 1994/05/06 12:50:07;  author: john;  state: Exp;
81 Added supertransparency; neatend things up; took out warnings.
82 ----------------------------
83 revision 1.10
84 date: 1994/04/08 16:59:39;  author: john;  state: Exp;
85 Add fading poly's; Made palette fade 32 instead of 16.
86 ----------------------------
87 revision 1.9
88 date: 1994/03/16 17:21:09;  author: john;  state: Exp;
89 Added slow palette searching options.
90 ----------------------------
91 revision 1.8
92 date: 1994/03/14 17:59:35;  author: john;  state: Exp;
93 Added function to check bitmap's transparency.
94 ----------------------------
95 revision 1.7
96 date: 1994/03/14 17:16:21;  author: john;  state: Exp;
97 fixed bug with counting freq of pixels.
98 ----------------------------
99 revision 1.6
100 date: 1994/03/14 16:55:47;  author: john;  state: Exp;
101 Changed grs_bitmap structure to include bm_flags.
102 ----------------------------
103 revision 1.5
104 date: 1994/02/18 15:32:22;  author: john;  state: Exp;
105 *** empty log message ***
106 ----------------------------
107 revision 1.4
108 date: 1993/10/15 16:22:49;  author: john;  state: Exp;
109 *** empty log message ***
110 ----------------------------
111 revision 1.3
112 date: 1993/09/08 17:37:11;  author: john;  state: Exp;
113 Checking for errors with Yuan...
114 ----------------------------
115 revision 1.2
116 date: 1993/09/08 14:46:27;  author: john;  state: Exp;
117 looking for possible bugs...
118 ----------------------------
119 revision 1.1
120 date: 1993/09/08 11:43:05;  author: john;  state: Exp;
121 Initial revision
122 =============================================================================
123 RCS file: /Smoke/miner/source/2d/box.c,v
124 Working file: 2d/box.c
125 head: 1.1
126 description: Graphical routines for drawing boxes.
127 ----------------------------
128 revision 1.1
129 date: 1995/03/09 08:49:05;  author: allender;  state: Exp;
130 Initial revision
131 ----------------------------
132 revision 1.3
133 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
134 Changed shorts to ints in parameters.
135 ----------------------------
136 revision 1.2
137 date: 1993/10/15 16:23:31;  author: john;  state: Exp;
138 y
139 ----------------------------
140 revision 1.1
141 date: 1993/09/08 11:43:11;  author: john;  state: Exp;
142 Initial revision
143 =============================================================================
144 RCS file: /Smoke/miner/source/2d/canvas.c,v
145 Working file: 2d/canvas.c
146 head: 1.7
147 description: Graphical routines for manipulating grs_canvas's.
148 ----------------------------
149 revision 1.7
150 date: 1995/06/15 09:51:01;  author: allender;  state: Exp;
151 new malloc to align canvas on 8 byte boundry
152 ----------------------------
153 revision 1.6
154 date: 1995/05/12 11:52:30;  author: allender;  state: Exp;
155 changed memory stuff again
156 ----------------------------
157 revision 1.5
158 date: 1995/05/04 19:59:49;  author: allender;  state: Exp;
159 use NewPtr instead of malloc
160 ----------------------------
161 revision 1.4
162 date: 1995/05/01 08:38:16;  author: allender;  state: Exp;
163 work on malloc stuff and other things
164 ----------------------------
165 revision 1.3
166 date: 1995/04/27 07:39:33;  author: allender;  state: Exp;
167 fix variable
168 ----------------------------
169 revision 1.2
170 date: 1995/04/19 14:40:14;  author: allender;  state: Exp;
171 removed pragma
172 ----------------------------
173 revision 1.1
174 date: 1995/03/09 08:50:27;  author: allender;  state: Exp;
175 Initial revision
176 ----------------------------
177 revision 1.12
178 date: 1994/11/28 17:08:29;  author: john;  state: Exp;
179 Took out some unused functions in linear.asm, moved
180 gr_linear_movsd from linear.asm to bitblt.c, made sure that
181 the code in ibiblt.c sets the direction flags before rep movsing.
182 ----------------------------
183 revision 1.11
184 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
185 Changed shorts to ints in parameters.
186 ----------------------------
187 revision 1.10
188 date: 1994/11/10 15:59:33;  author: john;  state: Exp;
189 Fixed bugs with canvas's being created with bogus bm_flags.
190 ----------------------------
191 revision 1.9
192 date: 1994/06/24 17:26:34;  author: john;  state: Exp;
193 Made rowsizes bigger than actual screen work with SVGA.
194 ----------------------------
195 revision 1.8
196 date: 1994/05/06 12:50:41;  author: john;  state: Exp;
197 Added supertransparency; neatend things up; took out warnings.
198 ----------------------------
199 revision 1.7
200 date: 1993/12/08 16:41:26;  author: john;  state: Exp;
201 fixed color = -1 bug
202 ----------------------------
203 revision 1.6
204 date: 1993/10/15 16:22:25;  author: john;  state: Exp;
205 *** empty log message ***
206 ----------------------------
207 revision 1.5
208 date: 1993/09/29 16:14:07;  author: john;  state: Exp;
209 added globol variables describing current canvas
210 ----------------------------
211 revision 1.4
212 date: 1993/09/14 16:03:40;  author: matt;  state: Exp;
213 Added new function, gr_clear_canvas()
214 ----------------------------
215 revision 1.3
216 date: 1993/09/14 13:51:38;  author: matt;  state: Exp;
217 in gr_init_sub_canvas(), copy bm_rowsize from source canvas
218 ----------------------------
219 revision 1.2
220 date: 1993/09/08 17:37:34;  author: john;  state: Exp;
221 Checking for potential errors
222 ----------------------------
223 revision 1.1
224 date: 1993/09/08 11:43:18;  author: john;  state: Exp;
225 Initial revision
226 =============================================================================
227 RCS file: /Buggin/miner/source/2d/clip.h,v
228 Working file: 2d/clip.h
229 head: 1.1
230 description: Macros used for clipping
231 ----------------------------
232 revision 1.1
233 date: 1995/03/09 08:51:39;  author: allender;  state: Exp;
234 Initial revision
235 ----------------------------
236 revision 1.3
237 date: 1993/10/15 16:22:28;  author: john;  state: Exp;
238 *** empty log message ***
239 ----------------------------
240 revision 1.2
241 date: 1993/09/29 16:14:31;  author: john;  state: Exp;
242 made work with fix point
243 ----------------------------
244 revision 1.1
245 date: 1993/09/08 11:40:53;  author: john;  state: Exp;
246 Initial revision
247 =============================================================================
248 RCS file: /Smoke/miner/source/2d/disc.c,v
249 Working file: 2d/disc.c
250 head: 1.1
251 description: Graphical routines for drawing a disk.
252 ----------------------------
253 revision 1.1
254 date: 1995/03/09 08:52:14;  author: allender;  state: Exp;
255 Initial revision
256 ----------------------------
257 revision 1.5
258 date: 1994/11/18 22:50:16;  author: john;  state: Exp;
259 Changed shorts to ints in parameters.
260 ----------------------------
261 revision 1.4
262 date: 1994/05/06 12:50:12;  author: john;  state: Exp;
263 Added supertransparency; neatend things up; took out warnings.
264 ----------------------------
265 revision 1.3
266 date: 1994/04/22 11:16:04;  author: john;  state: Exp;
267 *** empty log message ***
268 ----------------------------
269 revision 1.2
270 date: 1993/10/15 16:22:24;  author: john;  state: Exp;
271 *** empty log message ***
272 ----------------------------
273 revision 1.1
274 date: 1993/09/08 11:43:24;  author: john;  state: Exp;
275 Initial revision
276 =============================================================================
277 RCS file: /Smoke/miner/source/2d/effect2d.h,v
278 Working file: 2d/effect2d.h
279 head: 1.1
280 description: .
281 ----------------------------
282 revision 1.1
283 date: 1995/05/05 09:26:41;  author: allender;  state: Exp;
284 Initial revision
285 ----------------------------
286 revision 1.2
287 date: 1994/02/01 13:18:47;  author: john;  state: Exp;
288 *** empty log message ***
289 ----------------------------
290 revision 1.1
291 date: 1994/01/28 11:59:37;  author: john;  state: Exp;
292 Initial revision
293 =============================================================================
294 RCS file: /Smoke/miner/source/2d/effects.c,v
295 Working file: 2d/effects.c
296 head: 1.1
297 description: special effects stuff
298 ----------------------------
299 revision 1.1
300 date: 1995/03/09 08:53:09;  author: allender;  state: Exp;
301 Initial revision
302 ----------------------------
303 revision 1.2
304 date: 1993/10/26 13:18:15;  author: john;  state: Exp;
305 *** empty log message ***
306 ----------------------------
307 revision 1.1
308 date: 1993/10/25 14:56:56;  author: john;  state: Exp;
309 Initial revision
310 =============================================================================
311 RCS file: /Buggin/miner/source/2d/effects.h,v
312 Working file: 2d/effects.h
313 head: 1.1
314 description: Special effects stuff.
315 ----------------------------
316 revision 1.1
317 date: 1995/03/09 08:53:43;  author: allender;  state: Exp;
318 Initial revision
319 ----------------------------
320 revision 1.2
321 date: 1993/10/26 13:17:58;  author: john;  state: Exp;
322 *** empty log message ***
323 ----------------------------
324 revision 1.1
325 date: 1993/10/25 14:56:02;  author: john;  state: Exp;
326 Initial revision
327 head: 1.14
328 description: Graphical routines for drawing fonts.
329 ----------------------------
330 revision 1.14
331 date: 1995/10/03 13:08:31;  author: allender;  state: Exp;
332 new font code that doesn't use & as underline marker
333 ----------------------------
334 revision 1.13
335 date: 1995/09/24 10:50:23;  author: allender;  state: Exp;
336 fixed signed/unsigned problem causing incorrect character widths
337 to be generated
338 ----------------------------
339 revision 1.12
340 date: 1995/08/14 14:26:01;  author: allender;  state: Exp;
341 changed transparency color to 0
342 ----------------------------
343 revision 1.11
344 date: 1995/07/05 16:05:32;  author: allender;  state: Exp;
345 transparency/kitchen changes
346 ----------------------------
347 revision 1.10
348 date: 1995/05/12 11:52:45;  author: allender;  state: Exp;
349 changed memory stuff again
350 ----------------------------
351 revision 1.9
352 date: 1995/05/11 13:42:00;  author: allender;  state: Exp;
353 changed char to ubyte in some cases to get extended characters
354 ----------------------------
355 revision 1.8
356 date: 1995/05/11 12:48:42;  author: allender;  state: Exp;
357 change transparency color
358 ----------------------------
359 revision 1.7
360 date: 1995/05/04 20:00:07;  author: allender;  state: Exp;
361 use NewPtr instead of malloc
362 ----------------------------
363 revision 1.6
364 date: 1995/05/01 08:38:34;  author: allender;  state: Exp;
365 memory stuff and other things
366 ----------------------------
367 revision 1.5
368 date: 1995/04/27 07:39:06;  author: allender;  state: Exp;
369 *** empty log message ***
370 ----------------------------
371 revision 1.4
372 date: 1995/04/19 14:38:01;  author: allender;  state: Exp;
373 changed asm code to C
374 ----------------------------
375 revision 1.3
376 date: 1995/04/04 11:40:52;  author: allender;  state: Exp;
377 *** empty log message ***
378 ----------------------------
379 revision 1.2
380 date: 1995/03/30 15:07:06;  author: allender;  state: Exp;
381 *** empty log message ***
382 ----------------------------
383 revision 1.1
384 date: 1995/03/09 08:55:04;  author: allender;  state: Exp;
385 Initial revision
386 ----------------------------
387 revision 1.28
388 date: 1994/11/27 23:08:22;  author: matt;  state: Exp;
389 Changes for new mprintf calling convention
390 ----------------------------
391 revision 1.27
392 date: 1994/11/18 23:54:50;  author: john;  state: Exp;
393 Made centering work on x = 0x8000 not -0x8000.
394 ----------------------------
395 revision 1.26
396 date: 1994/11/18 22:50:23;  author: john;  state: Exp;
397 Changed shorts to ints in parameters.
398 ----------------------------
399 revision 1.25
400 date: 1994/11/04 11:10:31;  author: john;  state: Exp;
401 Took the & out of string sizing.
402 ----------------------------
403 revision 1.24
404 date: 1994/11/04 10:06:36;  author: john;  state: Exp;
405 Added fade table for fading fonts. Made font that partially clips
406 not print a warning message.
407 ----------------------------
408 revision 1.23
409 date: 1994/09/29 10:09:06;  author: john;  state: Exp;
410 Added real clipping to text.
411 ----------------------------
412 revision 1.22
413 date: 1994/09/12 19:27:51;  author: john;  state: Exp;
414 Fixed bug with unclipped fonts clipping.
415 ----------------------------
416 revision 1.21
417 date: 1994/09/12 17:16:59;  author: john;  state: Exp;
418 Added clipping.
419 ----------------------------
420 revision 1.20
421 date: 1994/08/28 16:43:01;  author: matt;  state: Exp;
422 Added centering if x==0x8000
423 ----------------------------
424 revision 1.19
425 date: 1994/08/15 15:01:11;  author: matt;  state: Exp;
426 Close font file after reading
427 ----------------------------
428 revision 1.18
429 date: 1994/08/12 18:17:42;  author: matt;  state: Exp;
430 Fixed stupid bug that cause first char in font not to print
431 ----------------------------
432 revision 1.17
433 date: 1994/08/11 18:00:17;  author: matt;  state: Exp;
434 Cleaned up code, fixed string width bug.
435 ----------------------------
436 revision 1.16
437 date: 1994/08/10 18:46:11;  author: matt;  state: Exp;
438 Fixed a couple of little things
439 ----------------------------
440 revision 1.15
441 date: 1994/08/10 18:36:20;  author: matt;  state: Exp;
442 Changed font file format.  Made chars not in font plot as spaces.  Font file
443 now stores palette for color font & remaps on load.
444 ----------------------------
445 revision 1.14
446 date: 1994/08/10 12:27:27;  author: matt;  state: Exp;
447 Took out unneeded int3
448 ----------------------------
449 revision 1.13
450 date: 1994/08/10 12:25:26;  author: matt;  state: Exp;
451 Added support for colors fonts & kerned fonts
452 Made our own font file format
453 ----------------------------
454 revision 1.12
455 date: 1994/07/22 17:19:00;  author: john;  state: Exp;
456 made proportional font width be the max width.
457 ----------------------------
458 revision 1.11
459 date: 1994/05/06 12:50:26;  author: john;  state: Exp;
460 Added supertransparency; neatend things up; took out warnings.
461 ----------------------------
462 revision 1.10
463 date: 1994/01/31 11:08:12;  author: john;  state: Exp;
464 fixed bug with order of frees.
465 ----------------------------
466 revision 1.9
467 date: 1994/01/31 10:36:40;  author: john;  state: Exp;
468 Free'd variable size font data.
469 ----------------------------
470 revision 1.8
471 date: 1994/01/27 17:17:40;  author: john;  state: Exp;
472 Made error if font file doesn't exist.
473 ----------------------------
474 revision 1.7
475 date: 1993/10/26 13:17:48;  author: john;  state: Exp;
476 *** empty log message ***
477 ----------------------------
478 revision 1.6
479 date: 1993/10/15 16:23:25;  author: john;  state: Exp;
480 y
481 ----------------------------
482 revision 1.5
483 date: 1993/09/28 19:05:50;  author: john;  state: Exp;
484 added support for \n in gr_string and gr_get_string_size
485 ----------------------------
486 revision 1.4
487 date: 1993/09/28 12:46:49;  author: matt;  state: Exp;
488 On error, now call Error() instead of exit().
489 ----------------------------
490 revision 1.3
491 date: 1993/09/20 11:35:31;  author: john;  state: Exp;
492 *** empty log message ***
493 ----------------------------
494 revision 1.2
495 date: 1993/09/08 15:54:39;  author: john;  state: Exp;
496 renamed ReadFile to readfontfile to prevent conflicts with others.
497 ----------------------------
498 revision 1.1
499 date: 1993/09/08 11:43:34;  author: john;  state: Exp;
500 Initial revision
501 =============================================================================
502 RCS file: /Smoke/miner/source/2d/gpixel.c,v
503 Working file: 2d/gpixel.c
504 head: 1.1
505 description: Graphical routines for getting a pixel's value.
506 ----------------------------
507 revision 1.1
508 date: 1995/03/09 08:55:42;  author: allender;  state: Exp;
509 Initial revision
510 ----------------------------
511 revision 1.5
512 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
513 Changed shorts to ints in parameters.
514 ----------------------------
515 revision 1.4
516 date: 1994/05/06 12:50:08;  author: john;  state: Exp;
517 Added supertransparency; neatend things up; took out warnings.
518 ----------------------------
519 revision 1.3
520 date: 1993/10/15 16:22:50;  author: john;  state: Exp;
521 y
522 ----------------------------
523 revision 1.2
524 date: 1993/09/29 16:15:00;  author: john;  state: Exp;
525 optimized
526 ----------------------------
527 revision 1.1
528 date: 1993/09/08 11:43:40;  author: john;  state: Exp;
529 Initial revision
530 =============================================================================
531 RCS file: /Smoke/miner/source/2d/gr.c,v
532 Working file: 2d/gr.c
533 head: 1.12
534 description: Graphical routines for setting video modes, etc.
535 ----------------------------
536 revision 1.12
537 date: 1995/12/01 09:14:18;  author: allender;  state: Exp;
538 stupid comment to check PC rcs
539 ----------------------------
540 revision 1.11
541 date: 1995/10/21 23:45:45;  author: allender;  state: Exp;
542 clear screen to black at close
543 ----------------------------
544 revision 1.10
545 date: 1995/10/18 01:08:14;  author: allender;  state: Exp;
546 call gr_palette_gamma functionc
547 ----------------------------
548 revision 1.9
549 date: 1995/09/22 14:29:15;  author: allender;  state: Exp;
550 fixed aspect at F1_0
551 ----------------------------
552 revision 1.8
553 date: 1995/08/18 15:49:45;  author: allender;  state: Exp;
554 call function to build gamma table
555 ----------------------------
556 revision 1.7
557 date: 1995/08/14 14:58:45;  author: allender;  state: Exp;
558 removed call to white_window()
559 ----------------------------
560 revision 1.6
561 date: 1995/08/02 20:03:46;  author: allender;  state: Exp;
562 center game screen on mac screen on release
563 ----------------------------
564 revision 1.5
565 date: 1995/06/13 13:03:32;  author: allender;  state: Exp;
566 overhauled the windowing system.  Put back in gr_set_mode to change window
567 size
568 ----------------------------
569 revision 1.4
570 date: 1995/05/12 11:52:57;  author: allender;  state: Exp;
571 changed memory stuff again
572 ----------------------------
573 revision 1.3
574 date: 1995/04/18 09:50:29;  author: allender;  state: Exp;
575 *** empty log message ***
576 ----------------------------
577 revision 1.2
578 date: 1995/04/07 07:31:20;  author: allender;  state: Exp;
579 *** empty log message ***
580 ----------------------------
581 revision 1.1
582 date: 1995/03/09 08:56:44;  author: allender;  state: Exp;
583 Initial revision
584 ----------------------------
585 revision 1.49
586 date: 1994/11/30 20:16:05;  author: john;  state: Exp;
587 Fixed bug that the grd_curscreen flags were never initialized.
588 ----------------------------
589 revision 1.48
590 date: 1994/11/24 13:24:43;  author: john;  state: Exp;
591 Made sure that some rep movs had the cld set first.
592 Took some unused functions out.
593 ----------------------------
594 revision 1.47
595 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
596 Changed shorts to ints in parameters.
597 ----------------------------
598 revision 1.46
599 date: 1994/11/15 18:28:36;  author: john;  state: Exp;
600 Made text screen fade in.
601 ----------------------------
602 revision 1.45
603 date: 1994/11/15 17:55:11;  author: john;  state: Exp;
604 Made text palette fade in when game over.
605 ----------------------------
606 revision 1.44
607 date: 1994/11/07 12:07:30;  author: john;  state: Exp;
608 Made save/restore cursor work a bit better.
609 ----------------------------
610 revision 1.43
611 date: 1994/11/05 12:46:44;  author: john;  state: Exp;
612 Changed palette stuff a bit.
613 ----------------------------
614 revision 1.42
615 date: 1994/10/26 23:55:50;  author: john;  state: Exp;
616 Took out roller; Took out inverse table.
617 ----------------------------
618 revision 1.41
619 date: 1994/10/10 13:59:50;  author: john;  state: Exp;
620 *** empty log message ***
621 ----------------------------
622 revision 1.40
623 date: 1994/10/10 13:58:50;  author: john;  state: Exp;
624 Added better VGA detection scheme.
625 ----------------------------
626 revision 1.39
627 date: 1994/09/29 10:09:15;  author: john;  state: Exp;
628 Hacked out VGA card detection for now.
629 ----------------------------
630 revision 1.38
631 date: 1994/09/22 17:35:35;  author: john;  state: Exp;
632 Fixed bug with palette not reloading in
633 gr_set_mode
634 ----------------------------
635 revision 1.37
636 date: 1994/09/22 16:08:42;  author: john;  state: Exp;
637 Fixed some palette stuff.
638 ----------------------------
639 revision 1.36
640 date: 1994/09/19 11:44:23;  author: john;  state: Exp;
641 Changed call to allocate selector to the dpmi module.
642 ----------------------------
643 revision 1.35
644 date: 1994/09/12 19:28:11;  author: john;  state: Exp;
645 Fixed bug with unclipped fonts clipping.
646 ----------------------------
647 revision 1.34
648 date: 1994/09/12 18:20:18;  author: john;  state: Exp;
649 Made text fade out
650 ----------------------------
651 revision 1.33
652 date: 1994/09/12 14:40:15;  author: john;  state: Exp;
653 Neatend.
654 ----------------------------
655 revision 1.32
656 date: 1994/08/15 15:01:01;  author: matt;  state: Exp;
657 Set ptr to NULL after freeing
658 ----------------------------
659 revision 1.31
660 date: 1994/07/27 18:30:28;  author: john;  state: Exp;
661 Took away the blending table.
662 ----------------------------
663 revision 1.30
664 date: 1994/06/24 17:26:59;  author: john;  state: Exp;
665 Made rowsizes bigger than actual screen work with SVGA.
666 ----------------------------
667 revision 1.29
668 date: 1994/05/12 17:33:16;  author: john;  state: Exp;
669 Added circle code.
670 ----------------------------
671 revision 1.28
672 date: 1994/05/10 19:51:49;  author: john;  state: Exp;
673 Added 320x100 mode.
674 ----------------------------
675 revision 1.27
676 date: 1994/05/06 12:50:23;  author: john;  state: Exp;
677 Added supertransparency; neatend things up; took out warnings.
678 ----------------------------
679 revision 1.26
680 date: 1994/05/03 19:39:00;  author: john;  state: Exp;
681 *** empty log message ***
682 ----------------------------
683 revision 1.25
684 date: 1994/04/08 16:59:34;  author: john;  state: Exp;
685 Add fading poly's; Made palette fade 32 instead of 16.
686 ----------------------------
687 revision 1.24
688 date: 1994/03/14 16:56:16;  author: john;  state: Exp;
689 Changed grs_bitmap structure to include bm_flags.
690 ----------------------------
691 revision 1.23
692 date: 1994/02/18 15:32:27;  author: john;  state: Exp;
693 *** empty log message ***
694 ----------------------------
695 revision 1.22
696 date: 1994/01/25 11:40:44;  author: john;  state: Exp;
697 Added gr_check_mode function.
698 ----------------------------
699 revision 1.21
700 date: 1993/12/21 19:57:48;  author: john;  state: Exp;
701 added selector stuff.
702 ----------------------------
703 revision 1.20
704 date: 1993/12/21 11:40:32;  author: john;  state: Exp;
705 *** empty log message ***
706 ----------------------------
707 revision 1.19
708 date: 1993/12/09 15:02:13;  author: john;  state: Exp;
709 Changed palette stuff majorly
710 ----------------------------
711 revision 1.18
712 date: 1993/11/16 11:28:36;  author: john;  state: Exp;
713 *** empty log message ***
714 ----------------------------
715 revision 1.17
716 date: 1993/10/26 13:17:53;  author: john;  state: Exp;
717 *** empty log message ***
718 ----------------------------
719 revision 1.16
720 date: 1993/10/15 16:23:42;  author: john;  state: Exp;
721 y
722 ----------------------------
723 revision 1.15
724 date: 1993/09/29 16:15:21;  author: john;  state: Exp;
725 optimized
726 ----------------------------
727 revision 1.14
728 date: 1993/09/28 19:06:51;  author: john;  state: Exp;
729 made gr_set_mode change the grd_cursreen->sc_mode variable.
730 ----------------------------
731 revision 1.13
732 date: 1993/09/28 12:52:12;  author: matt;  state: Exp;
733 Set aspect ratio of current screen in gr_init() and gr_set_mode().
734 ----------------------------
735 revision 1.12
736 date: 1993/09/27 13:00:24;  author: john;  state: Exp;
737 made gr_set_mode not call mode_reset on fail
738 ----------------------------
739 revision 1.11
740 date: 1993/09/27 12:51:27;  author: john;  state: Exp;
741 fixed gr_set_mode to return values
742 ----------------------------
743 revision 1.10
744 date: 1993/09/26 18:59:12;  author: john;  state: Exp;
745 fade in/out stuff
746 ----------------------------
747 revision 1.9
748 date: 1993/09/21 14:00:41;  author: john;  state: Exp;
749 added code to save 43/50 line modes.
750 ----------------------------
751 revision 1.8
752 date: 1993/09/20 14:48:48;  author: john;  state: Exp;
753 *** empty log message ***
754 ----------------------------
755 revision 1.7
756 date: 1993/09/16 17:27:48;  author: john;  state: Exp;
757 Added code to save/restore video mode.
758 ----------------------------
759 revision 1.6
760 date: 1993/09/16 16:30:15;  author: john;  state: Exp;
761 Made gr_close retore Mode 3 always.
762 ----------------------------
763 revision 1.5
764 date: 1993/09/14 18:40:07;  author: john;  state: Exp;
765 Made it so that gr_setmode doesn't change curcanv font and colors.
766 ----------------------------
767 revision 1.4
768 date: 1993/09/14 16:27:01;  author: matt;  state: Exp;
769 Changes gr_change_mode() to be gr_set_mode()
770 After gr_set_mode(), grd_curcanv is the canvas of the new screen
771 Made gr_set_mode() work with the new grd_curcanv, not the old one
772 ----------------------------
773 revision 1.3
774 date: 1993/09/14 13:08:37;  author: john;  state: Exp;
775 Added gr_changemode
776 ----------------------------
777 revision 1.2
778 date: 1993/09/08 17:36:37;  author: john;  state: Exp;
779 Looking for error for Yuan... Neatened the nested ifs in setmode.
780 ----------------------------
781 revision 1.1
782 date: 1993/09/08 11:43:51;  author: john;  state: Exp;
783 Initial revision
784 =============================================================================
785 RCS file: /Smoke/miner/source/2d/gr.h,v
786 Working file: 2d/gr.h
787 head: 1.7
788 description: Definitions for graphics lib.
789 ----------------------------
790 revision 1.7
791 date: 1995/09/13 08:39:44;  author: allender;  state: Exp;
792 added prototype for gr_bitblt_cockpit
793 ----------------------------
794 revision 1.6
795 date: 1995/08/23 18:47:01;  author: allender;  state: Exp;
796 fixed compiler warnings on mcc
797 ----------------------------
798 revision 1.5
799 date: 1995/08/14 15:51:01;  author: allender;  state: Exp;
800 added #define for transparency color
801 ----------------------------
802 revision 1.4
803 date: 1995/06/13 13:03:55;  author: allender;  state: Exp;
804 added graphics mode
805 ----------------------------
806 revision 1.3
807 date: 1995/04/18 09:50:16;  author: allender;  state: Exp;
808 *** empty log message ***
809 ----------------------------
810 revision 1.2
811 date: 1995/04/07 07:32:33;  author: allender;  state: Exp;
812 *** empty log message ***
813 ----------------------------
814 revision 1.1
815 date: 1995/03/09 09:04:16;  author: allender;  state: Exp;
816 Initial revision
817 ----------------------------
818 revision 1.45
819 date: 1994/11/18 22:50:21;  author: john;  state: Exp;
820 Changed shorts to ints in parameters.
821 ----------------------------
822 revision 1.44
823 date: 1994/11/13 13:04:07;  author: john;  state: Exp;
824 Added paged out bit in bitmap structure.  Commented out the
825 poly code that is never used.
826 ----------------------------
827 revision 1.43
828 date: 1994/11/09 23:04:56;  author: mike;  state: Exp;
829 Add avg_color field.
830 ----------------------------
831 revision 1.42
832 date: 1994/10/27 00:53:35;  author: john;  state: Exp;
833 Added RLE Flag to bitmap structere.
834 ----------------------------
835 revision 1.41
836 date: 1994/10/26 23:55:52;  author: john;  state: Exp;
837 Took out roller; Took out inverse table.
838 ----------------------------
839 revision 1.40
840 date: 1994/08/11 17:59:12;  author: mike;  state: Exp;
841 Assembler merge functions written for 3 rotations of bitmaps.
842 ----------------------------
843 revision 1.39
844 date: 1994/08/10 12:24:56;  author: matt;  state: Exp;
845 Added support for colors fonts & kerned fonts
846 Made our own font file format
847 ----------------------------
848 revision 1.38
849 date: 1994/07/27 18:30:18;  author: john;  state: Exp;
850 Took away the blending table.
851 ----------------------------
852 revision 1.37
853 date: 1994/06/16 15:25:06;  author: mike;  state: Exp;
854 Add flag BM_FLAG_NO_LIGHTING.
855 ----------------------------
856 revision 1.36
857 date: 1994/05/31 10:01:22;  author: john;  state: Exp;
858 *** empty log message ***
859 ----------------------------
860 revision 1.35
861 date: 1994/05/31 07:53:34;  author: john;  state: Exp;
862 *** empty log message ***
863 ----------------------------
864 revision 1.34
865 date: 1994/05/14 17:19:41;  author: matt;  state: Exp;
866 Added externs
867 ----------------------------
868 revision 1.33
869 date: 1994/05/12 17:33:09;  author: john;  state: Exp;
870 Added circle code.
871 ----------------------------
872 revision 1.32
873 date: 1994/05/06 12:50:16;  author: john;  state: Exp;
874 Added supertransparency; neatend things up; took out warnings.
875 ----------------------------
876 revision 1.31
877 date: 1994/05/04 10:06:06;  author: john;  state: Exp;
878 Added flag for bitmap super-transparency.
879 ----------------------------
880 revision 1.30
881 date: 1994/05/03 19:38:56;  author: john;  state: Exp;
882 *** empty log message ***
883 ----------------------------
884 revision 1.29
885 date: 1994/04/22 11:16:05;  author: john;  state: Exp;
886 *** empty log message ***
887 ----------------------------
888 revision 1.28
889 date: 1994/04/08 16:59:32;  author: john;  state: Exp;
890 Add fading poly's; Made palette fade 32 instead of 16.
891 ----------------------------
892 revision 1.27
893 date: 1994/03/16 17:29:52;  author: john;  state: Exp;
894 *** empty log message ***
895 ----------------------------
896 revision 1.26
897 date: 1994/03/16 17:20:51;  author: john;  state: Exp;
898 Added slow palette searching options.
899 ----------------------------
900 revision 1.25
901 date: 1994/03/14 17:59:20;  author: john;  state: Exp;
902 Added function to check bitmap's transparency.
903 ----------------------------
904 revision 1.24
905 date: 1994/03/14 16:56:26;  author: john;  state: Exp;
906 Changed grs_bitmap structure to include bm_flags.
907 ----------------------------
908 revision 1.23
909 date: 1994/02/18 15:32:30;  author: john;  state: Exp;
910 *** empty log message ***
911 ----------------------------
912 revision 1.22
913 date: 1994/01/25 11:40:48;  author: john;  state: Exp;
914 Added gr_check_mode function.
915 ----------------------------
916 revision 1.21
917 date: 1994/01/12 13:45:24;  author: john;  state: Exp;
918 Added scaler.
919 ----------------------------
920 revision 1.20
921 date: 1993/12/21 19:58:24;  author: john;  state: Exp;
922 added selector stuff
923 ----------------------------
924 revision 1.19
925 date: 1993/12/21 11:40:40;  author: john;  state: Exp;
926 *** empty log message ***
927 ----------------------------
928 revision 1.18
929 date: 1993/12/09 15:02:08;  author: john;  state: Exp;
930 Changed palette stuff majorly
931 ----------------------------
932 revision 1.17
933 date: 1993/12/07 12:32:05;  author: john;  state: Exp;
934 moved bmd_palette to gr_palette
935 ----------------------------
936 revision 1.16
937 date: 1993/11/28 12:08:06;  author: mike;  state: Exp;
938 Change prototype for rotate_bitmap.
939 ----------------------------
940 revision 1.15
941 date: 1993/11/18 14:22:51;  author: mike;  state: Exp;
942 Add prototype for rotate_bitmap.
943 ----------------------------
944 revision 1.14
945 date: 1993/11/17 19:00:59;  author: mike;  state: Exp;
946 Add prototype for test_rotate_bitmap
947 ----------------------------
948 revision 1.13
949 date: 1993/11/16 11:28:58;  author: john;  state: Exp;
950 *** empty log message ***
951 ----------------------------
952 revision 1.12
953 date: 1993/10/26 13:17:43;  author: john;  state: Exp;
954 *** empty log message ***
955 ----------------------------
956 revision 1.11
957 date: 1993/10/15 16:23:37;  author: john;  state: Exp;
958 y
959 ----------------------------
960 revision 1.10
961 date: 1993/09/28 15:32:33;  author: john;  state: Exp;
962 added def for save/restore vidmode
963 ----------------------------
964 revision 1.9
965 date: 1993/09/28 12:51:46;  author: matt;  state: Exp;
966 Added aspect ratio to grs_screen structure
967 ----------------------------
968 revision 1.8
969 date: 1993/09/26 22:45:12;  author: matt;  state: Exp;
970 Changed prototypes for line functions to take fixes, not ints.
971 ----------------------------
972 revision 1.7
973 date: 1993/09/26 18:58:16;  author: john;  state: Exp;
974 fadein/out stuff
975 ----------------------------
976 revision 1.6
977 date: 1993/09/14 16:26:44;  author: matt;  state: Exp;
978 Changed gr_change_mode() to be gr_set_mode()
979 ----------------------------
980 revision 1.4
981 date: 1993/09/14 13:08:45;  author: john;  state: Exp;
982 added gr_change_mode
983 ----------------------------
984 revision 1.3
985 date: 1993/09/08 13:56:03;  author: matt;  state: Exp;
986 Put 'if' block around body of file; added bitmap type BM_RGB15
987 ----------------------------
988 revision 1.2
989 date: 1993/09/08 13:02:14;  author: john;  state: Exp;
990 Changed structure definitions a bit.
991 ----------------------------
992 revision 1.1
993 date: 1993/09/08 11:25:15;  author: john;  state: Exp;
994 Initial revision
995 =============================================================================
996 RCS file: /Smoke/miner/source/2d/grdef.h,v
997 Working file: 2d/grdef.h
998 head: 1.5
999 description: Internal definitions for graphics lib.
1000 ----------------------------
1001 revision 1.5
1002 date: 1995/09/14 15:36:33;  author: allender;  state: Exp;
1003 added stuff for 68k version
1004 ----------------------------
1005 revision 1.4
1006 date: 1995/07/05 16:10:57;  author: allender;  state: Exp;
1007 gr_linear_movsd prototype changes
1008 ----------------------------
1009 revision 1.3
1010 date: 1995/04/19 14:39:28;  author: allender;  state: Exp;
1011 changed function prototype
1012 ----------------------------
1013 revision 1.2
1014 date: 1995/04/18 09:49:53;  author: allender;  state: Exp;
1015 *** empty log message ***
1016 ----------------------------
1017 revision 1.1
1018 date: 1995/03/09 09:04:56;  author: allender;  state: Exp;
1019 Initial revision
1020 ----------------------------
1021 revision 1.8
1022 date: 1994/05/06 12:50:09;  author: john;  state: Exp;
1023 Added supertransparency; neatend things up; took out warnings.
1024 ----------------------------
1025 revision 1.7
1026 date: 1994/01/25 11:40:29;  author: john;  state: Exp;
1027 Added gr_check_mode function.
1028 ----------------------------
1029 revision 1.6
1030 date: 1993/10/15 16:22:53;  author: john;  state: Exp;
1031 y
1032 ----------------------------
1033 revision 1.5
1034 date: 1993/09/29 17:31:00;  author: john;  state: Exp;
1035 added gr_vesa_pixel
1036 ----------------------------
1037 revision 1.4
1038 date: 1993/09/29 16:14:43;  author: john;  state: Exp;
1039 added global canvas descriptors.
1040 ----------------------------
1041 revision 1.3
1042 date: 1993/09/08 17:38:02;  author: john;  state: Exp;
1043 Looking for errors
1044 ----------------------------
1045 revision 1.2
1046 date: 1993/09/08 15:54:29;  author: john;  state: Exp;
1047 *** empty log message ***
1048 ----------------------------
1049 revision 1.1
1050 date: 1993/09/08 11:37:57;  author: john;  state: Exp;
1051 Initial revision
1052 =============================================================================
1053 RCS file: /Smoke/miner/source/2d/ibitblt.c,v
1054 Working file: 2d/ibitblt.c
1055 head: 1.3
1056 description:  Routines to to inverse bitblitting -- well not really.
1057  We don't inverse bitblt like in the PC, but this code
1058  does set up a structure that blits around the cockpit
1059 ----------------------------
1060 revision 1.3
1061 date: 1995/09/13 11:43:22;  author: allender;  state: Exp;
1062 start on optimizing cockpit copy code
1063 ----------------------------
1064 revision 1.2
1065 date: 1995/09/07 10:16:57;  author: allender;  state: Exp;
1066 fixed up cockpit and rearview hole blitting
1067 ----------------------------
1068 revision 1.1
1069 date: 1995/08/18 15:50:48;  author: allender;  state: Exp;
1070 Initial revision
1071 =============================================================================
1072 RCS file: /Smoke/miner/source/2d/ibitblt.h,v
1073 Working file: 2d/ibitblt.h
1074 head: 1.1
1075 description:  Header prototypes for inverse bitblt funcitons
1076 ----------------------------
1077 revision 1.1
1078 date: 1995/08/18 15:50:57;  author: allender;  state: Exp;
1079 Initial revision
1080 =============================================================================
1081 RCS file: /Smoke/miner/source/2d/line.c,v
1082 Working file: 2d/line.c
1083 head: 1.2
1084 description: Graphical routines for drawing lines.
1085 ----------------------------
1086 revision 1.2
1087 date: 1995/09/14 13:45:24;  author: allender;  state: Exp;
1088 optimizations from Dave Denhart
1089 ----------------------------
1090 revision 1.1
1091 date: 1995/03/09 09:09:46;  author: allender;  state: Exp;
1092 Initial revision
1093 ----------------------------
1094 revision 1.10
1095 date: 1994/11/18 22:50:02;  author: john;  state: Exp;
1096 Changed shorts to ints in parameters.
1097 ----------------------------
1098 revision 1.9
1099 date: 1994/07/13 12:03:04;  author: john;  state: Exp;
1100 Added assembly modex line-drawer.
1101 ----------------------------
1102 revision 1.8
1103 date: 1993/12/06 18:18:03;  author: john;  state: Exp;
1104 took out aaline.
1105 ----------------------------
1106 revision 1.7
1107 date: 1993/12/03 12:11:17;  author: john;  state: Exp;
1108 ,
1109 ----------------------------
1110 revision 1.6
1111 date: 1993/11/18 09:40:22;  author: john;  state: Exp;
1112 Added laser-line
1113 ----------------------------
1114 revision 1.5
1115 date: 1993/10/15 16:23:36;  author: john;  state: Exp;
1116 y
1117 ----------------------------
1118 revision 1.4
1119 date: 1993/09/29 16:13:58;  author: john;  state: Exp;
1120 optimized
1121 ----------------------------
1122 revision 1.3
1123 date: 1993/09/26 18:44:12;  author: matt;  state: Exp;
1124 Added gr_uline(), which just calls gr_line(), and made both take
1125 fixes, and shift down themselves.
1126 ----------------------------
1127 revision 1.2
1128 date: 1993/09/11 19:50:15;  author: matt;  state: Exp;
1129 In gr_vline() & gr_hline(), check for start > end, and EXCHG if so
1130 ----------------------------
1131 revision 1.1
1132 date: 1993/09/08 11:43:54;  author: john;  state: Exp;
1133 Initial revision
1134 =============================================================================
1135 RCS file: /Smoke/miner/source/2d/palette.c,v
1136 Working file: 2d/palette.c
1137 head: 1.20
1138 description: Graphical routines for setting the palette
1139 ----------------------------
1140 revision 1.20
1141 date: 1995/11/07 13:57:52;  author: allender;  state: Exp;
1142 set gr_palette_gamma_param to 4 as default
1143 ----------------------------
1144 revision 1.19
1145 date: 1995/10/18 01:07:55;  author: allender;  state: Exp;
1146 new gamma correction stuff
1147 ----------------------------
1148 revision 1.18
1149 date: 1995/10/13 14:39:46;  author: allender;  state: Exp;
1150 chance to appropriate GDevice when changing palette
1151 ----------------------------
1152 revision 1.17
1153 date: 1995/09/13 08:39:19;  author: allender;  state: Exp;
1154 added gamma correction table instead of on the fly calculation
1155 ----------------------------
1156 revision 1.16
1157 date: 1995/09/05 08:48:57;  author: allender;  state: Exp;
1158 changed palette gamme value to 1.5
1159 ----------------------------
1160 revision 1.15
1161 date: 1995/09/04 11:41:36;  author: allender;  state: Exp;
1162 added back the debug_mode to set video mode to b/w on
1163 error in case screen is faded.
1164 ----------------------------
1165 revision 1.14
1166 date: 1995/08/18 15:49:20;  author: allender;  state: Exp;
1167 added gamma correction value for PC palette entries
1168 ----------------------------
1169 revision 1.13
1170 date: 1995/08/14 14:26:20;  author: allender;  state: Exp;
1171 changed transparency color to 0
1172 ----------------------------
1173 revision 1.12
1174 date: 1995/07/17 10:41:57;  author: allender;  state: Exp;
1175 get palette read function working
1176 ----------------------------
1177 revision 1.11
1178 date: 1995/07/13 13:32:03;  author: allender;  state: Exp;
1179 change init_computed colors back to original form
1180 ----------------------------
1181 revision 1.10
1182 date: 1995/07/05 16:06:13;  author: allender;  state: Exp;
1183 don't use palette manager anymore -- directly use the color manager
1184 move transparency color back to entry 255 -- what a pain!!!
1185 ----------------------------
1186 revision 1.9
1187 date: 1995/06/23 12:28:21;  author: allender;  state: Exp;
1188 fixed gamma step up problems
1189 ----------------------------
1190 revision 1.8
1191 date: 1995/06/22 16:58:41;  author: allender;  state: Exp;
1192 moved check in gr_palette_fade_in to return immediatly if palette
1193 already faded in
1194 ----------------------------
1195 revision 1.7
1196 date: 1995/06/13 13:04:07;  author: allender;  state: Exp;
1197 modfied GWorld changes to execute only if GWorld is defined
1198 ----------------------------
1199 revision 1.6
1200 date: 1995/06/06 16:02:38;  author: allender;  state: Exp;
1201 fixed gr_palette_set_up to work more correctly
1202 ----------------------------
1203 revision 1.5
1204 date: 1995/05/11 12:49:01;  author: allender;  state: Exp;
1205 change transparency color -- fix up fade tables to reflect this
1206 ----------------------------
1207 revision 1.4
1208 date: 1995/04/27 07:38:52;  author: allender;  state: Exp;
1209 use animate palette to do fade in and out's
1210 ----------------------------
1211 revision 1.3
1212 date: 1995/04/18 09:49:39;  author: allender;  state: Exp;
1213 *** empty log message ***
1214 ----------------------------
1215 revision 1.2
1216 date: 1995/04/07 13:15:01;  author: allender;  state: Exp;
1217 *** empty log message ***
1218 ----------------------------
1219 revision 1.1
1220 date: 1995/03/09 09:20:08;  author: allender;  state: Exp;
1221 Initial revision
1222 ----------------------------
1223 revision 1.39
1224 date: 1994/12/01 11:23:27;  author: john;  state: Exp;
1225 Limited Gamma from 0-8.
1226 ----------------------------
1227 revision 1.38
1228 date: 1994/11/28 01:31:08;  author: mike;  state: Exp;
1229 optimize color lookup function, caching recently used colors.
1230 ----------------------------
1231 revision 1.37
1232 date: 1994/11/18 22:50:18;  author: john;  state: Exp;
1233 Changed shorts to ints in parameters.
1234 ----------------------------
1235 revision 1.36
1236 date: 1994/11/15 17:54:59;  author: john;  state: Exp;
1237 Made text palette fade in when game over.
1238 ----------------------------
1239 revision 1.35
1240 date: 1994/11/10 19:53:14;  author: matt;  state: Exp;
1241 Fixed error handling is gr_use_palette_table()
1242 ----------------------------
1243 revision 1.34
1244 date: 1994/11/07 13:53:48;  author: john;  state: Exp;
1245 Added better gamma stufff.
1246 ----------------------------
1247 revision 1.33
1248 date: 1994/11/07 13:37:56;  author: john;  state: Exp;
1249 Added gamma correction stuff.
1250 ----------------------------
1251 revision 1.32
1252 date: 1994/11/05 13:20:14;  author: john;  state: Exp;
1253 Fixed bug with find_closest_color_current not working.
1254 ----------------------------
1255 revision 1.31
1256 date: 1994/11/05 13:08:09;  author: john;  state: Exp;
1257 MAde it return 0 when palette already faded out.
1258 ----------------------------
1259 revision 1.30
1260 date: 1994/11/05 13:05:34;  author: john;  state: Exp;
1261 Added back in code to allow keys during fade.
1262 ----------------------------
1263 revision 1.29
1264 date: 1994/11/05 12:49:50;  author: john;  state: Exp;
1265 Fixed bug with previous comment..
1266 ----------------------------
1267 revision 1.28
1268 date: 1994/11/05 12:48:46;  author: john;  state: Exp;
1269 Made palette only fade in / out when its supposed to.
1270 ----------------------------
1271 revision 1.27
1272 date: 1994/11/05 12:46:43;  author: john;  state: Exp;
1273 Changed palette stuff a bit.
1274 ----------------------------
1275 revision 1.26
1276 date: 1994/11/01 12:59:35;  author: john;  state: Exp;
1277 Reduced palette.256 size.
1278 ----------------------------
1279 revision 1.25
1280 date: 1994/10/26 23:55:35;  author: john;  state: Exp;
1281 Took out roller; Took out inverse table.
1282 ----------------------------
1283 revision 1.24
1284 date: 1994/10/04 22:03:05;  author: matt;  state: Exp;
1285 Fixed bug: palette wasn't fading all the way out or in
1286 ----------------------------
1287 revision 1.23
1288 date: 1994/09/22 16:08:40;  author: john;  state: Exp;
1289 Fixed some palette stuff.
1290 ----------------------------
1291 revision 1.22
1292 date: 1994/09/19 11:44:31;  author: john;  state: Exp;
1293 Changed call to allocate selector to the dpmi module.
1294 ----------------------------
1295 revision 1.21
1296 date: 1994/09/12 19:28:09;  author: john;  state: Exp;
1297 Fixed bug with unclipped fonts clipping.
1298 ----------------------------
1299 revision 1.20
1300 date: 1994/09/12 18:18:39;  author: john;  state: Exp;
1301 Set 254 and 255 to fade to themselves in fadetable
1302 ----------------------------
1303 revision 1.19
1304 date: 1994/09/12 14:40:10;  author: john;  state: Exp;
1305 Neatend.
1306 ----------------------------
1307 revision 1.18
1308 date: 1994/09/09 09:31:55;  author: john;  state: Exp;
1309 Made find_closest_color not look at superx spot of 254
1310 ----------------------------
1311 revision 1.17
1312 date: 1994/08/09 11:27:08;  author: john;  state: Exp;
1313 Add cthru stuff.
1314 ----------------------------
1315 revision 1.16
1316 date: 1994/08/01 11:03:51;  author: john;  state: Exp;
1317 MAde it read in old/new palette.256
1318 ----------------------------
1319 revision 1.15
1320 date: 1994/07/27 18:30:27;  author: john;  state: Exp;
1321 Took away the blending table.
1322 ----------------------------
1323 revision 1.14
1324 date: 1994/06/09 10:39:52;  author: john;  state: Exp;
1325 In fade out.in functions, returned 1 if key was pressed...
1326 ----------------------------
1327 revision 1.13
1328 date: 1994/05/31 19:04:16;  author: john;  state: Exp;
1329 Added key to stop fade if desired.
1330 ----------------------------
1331 revision 1.12
1332 date: 1994/05/06 12:50:20;  author: john;  state: Exp;
1333 Added supertransparency; neatend things up; took out warnings.
1334 ----------------------------
1335 revision 1.11
1336 date: 1994/05/03 19:39:02;  author: john;  state: Exp;
1337 *** empty log message ***
1338 ----------------------------
1339 revision 1.10
1340 date: 1994/04/22 11:16:07;  author: john;  state: Exp;
1341 *** empty log message ***
1342 ----------------------------
1343 revision 1.9
1344 date: 1994/04/08 16:59:40;  author: john;  state: Exp;
1345 Add fading poly's; Made palette fade 32 instead of 16.
1346 ----------------------------
1347 revision 1.8
1348 date: 1994/03/16 17:21:17;  author: john;  state: Exp;
1349 Added slow palette searching options.
1350 ----------------------------
1351 revision 1.7
1352 date: 1994/01/07 11:47:33;  author: john;  state: Exp;
1353 made use cflib
1354 ----------------------------
1355 revision 1.6
1356 date: 1993/12/21 11:41:04;  author: john;  state: Exp;
1357 *** empty log message ***
1358 ----------------------------
1359 revision 1.5
1360 date: 1993/12/09 15:02:47;  author: john;  state: Exp;
1361 Changed palette stuff majorly
1362 ----------------------------
1363 revision 1.4
1364 date: 1993/12/07 12:31:41;  author: john;  state: Exp;
1365 moved bmd_palette to gr_palette
1366 ----------------------------
1367 revision 1.3
1368 date: 1993/10/15 16:22:23;  author: john;  state: Exp;
1369 *** empty log message ***
1370 ----------------------------
1371 revision 1.2
1372 date: 1993/09/26 18:59:46;  author: john;  state: Exp;
1373 fade stuff
1374 ----------------------------
1375 revision 1.1
1376 date: 1993/09/08 11:44:03;  author: john;  state: Exp;
1377 Initial revision
1378 =============================================================================
1379 RCS file: /Buggin/miner/source/2d/palette.h,v
1380 Working file: 2d/palette.h
1381 head: 1.1
1382 description: Protoypes for palette functions
1383 ----------------------------
1384 revision 1.1
1385 date: 1995/03/09 09:20:45;  author: allender;  state: Exp;
1386 Initial revision
1387 ----------------------------
1388 revision 1.11
1389 date: 1994/11/15 17:55:10;  author: john;  state: Exp;
1390 Made text palette fade in when game over.
1391 ----------------------------
1392 revision 1.10
1393 date: 1994/11/07 13:53:42;  author: john;  state: Exp;
1394 Added better gamma stufff.
1395 ----------------------------
1396 revision 1.9
1397 date: 1994/11/07 13:38:03;  author: john;  state: Exp;
1398 Added gamma correction stuff.
1399 ----------------------------
1400 revision 1.8
1401 date: 1994/11/05 13:05:59;  author: john;  state: Exp;
1402 Added back in code to allow keys during fade.
1403 ----------------------------
1404 revision 1.7
1405 date: 1994/11/05 12:46:37;  author: john;  state: Exp;
1406 Changed palette stuff a bit.
1407 ----------------------------
1408 revision 1.6
1409 date: 1994/09/22 16:08:37;  author: john;  state: Exp;
1410 Fixed some palette stuff.
1411 ----------------------------
1412 revision 1.5
1413 date: 1994/08/09 11:27:04;  author: john;  state: Exp;
1414 Add cthru stuff.
1415 ----------------------------
1416 revision 1.4
1417 date: 1994/06/09 10:39:33;  author: john;  state: Exp;
1418 In fade out.in functions, returned 1 if key was pressed...
1419 ----------------------------
1420 revision 1.3
1421 date: 1994/05/31 19:04:24;  author: john;  state: Exp;
1422 Added key to stop fade if desired.
1423 ----------------------------
1424 revision 1.2
1425 date: 1994/05/06 12:50:42;  author: john;  state: Exp;
1426 Added supertransparency; neatend things up; took out warnings.
1427 ----------------------------
1428 revision 1.1
1429 date: 1994/05/04 14:59:57;  author: john;  state: Exp;
1430 Initial revision
1431 =============================================================================
1432 RCS file: /Smoke/miner/source/2d/pcx.c,v
1433 Working file: 2d/pcx.c
1434 head: 1.11
1435 description: Routines to read/write pcx images.
1436 ----------------------------
1437 revision 1.11
1438 date: 1995/11/02 14:11:35;  author: allender;  state: Exp;
1439 shareware only code
1440 ----------------------------
1441 revision 1.10
1442 date: 1995/10/30 11:12:13;  author: allender;  state: Exp;
1443 added new pcx code
1444 ----------------------------
1445 revision 1.9
1446 date: 1995/10/21 00:14:35;  author: allender;  state: Exp;
1447 sped up pcx reading code
1448 ----------------------------
1449 revision 1.8
1450 date: 1995/07/17 10:41:21;  author: allender;  state: Exp;
1451 get pcx writting working
1452 ----------------------------
1453 revision 1.7
1454 date: 1995/07/05 16:07:05;  author: allender;  state: Exp;
1455 transparency/kitchen changes
1456 ----------------------------
1457 revision 1.6
1458 date: 1995/05/12 11:53:06;  author: allender;  state: Exp;
1459 changed memory stuff again
1460 ----------------------------
1461 revision 1.5
1462 date: 1995/04/27 07:38:35;  author: allender;  state: Exp;
1463 switch last and first palette entries when reading pcx file
1464 ----------------------------
1465 revision 1.4
1466 date: 1995/04/19 14:38:38;  author: allender;  state: Exp;
1467 rearranged some functions
1468 ----------------------------
1469 revision 1.3
1470 date: 1995/04/04 11:41:11;  author: allender;  state: Exp;
1471 *** empty log message ***
1472 ----------------------------
1473 revision 1.2
1474 date: 1995/03/30 15:06:41;  author: allender;  state: Exp;
1475 *** empty log message ***
1476 ----------------------------
1477 revision 1.1
1478 date: 1995/03/23 12:40:05;  author: allender;  state: Exp;
1479 Initial revision
1480 ----------------------------
1481 revision 1.6
1482 date: 1995/03/01 15:38:12;  author: john;  state: Exp;
1483 Better ModeX support.
1484 ----------------------------
1485 revision 1.5
1486 date: 1995/01/21 17:54:17;  author: john;  state: Exp;
1487 Added pcx reader for modes other than modex.
1488 ----------------------------
1489 revision 1.4
1490 date: 1994/12/08 19:03:56;  author: john;  state: Exp;
1491 Made functions use cfile.
1492 ----------------------------
1493 revision 1.3
1494 date: 1994/11/29 02:53:24;  author: john;  state: Exp;
1495 Added error messages; made call be more similiar to iff.
1496 ----------------------------
1497 revision 1.2
1498 date: 1994/11/28 20:03:50;  author: john;  state: Exp;
1499 Added PCX functions.
1500 ----------------------------
1501 revision 1.1
1502 date: 1994/11/28 19:57:56;  author: john;  state: Exp;
1503 Initial revision
1504 =============================================================================
1505 RCS file: /Smoke/miner/source/2d/pcx.h,v
1506 Working file: 2d/pcx.h
1507 head: 1.1
1508 description: Routines to read/write pcx images.
1509 ----------------------------
1510 revision 1.1
1511 date: 1995/05/05 09:26:22;  author: allender;  state: Exp;
1512 Initial revision
1513 ----------------------------
1514 revision 1.4
1515 date: 1995/01/21 17:07:34;  author: john;  state: Exp;
1516 Added out of memory error.
1517 ----------------------------
1518 revision 1.3
1519 date: 1994/11/29 02:53:10;  author: john;  state: Exp;
1520 Added error messages; made call be more similiar to iff.
1521 ----------------------------
1522 revision 1.2
1523 date: 1994/11/28 20:03:48;  author: john;  state: Exp;
1524 Added PCX functions.
1525 ----------------------------
1526 revision 1.1
1527 date: 1994/11/28 19:57:45;  author: john;  state: Exp;
1528 Initial revision
1529 =============================================================================
1530 RCS file: /Buggin/miner/source/2d/pixel.c,v
1531 Working file: 2d/pixel.c
1532 head: 1.1
1533 description: Graphical routines for setting a pixel.
1534 ----------------------------
1535 revision 1.1
1536 date: 1995/03/09 09:21:17;  author: allender;  state: Exp;
1537 Initial revision
1538 ----------------------------
1539 revision 1.5
1540 date: 1994/11/18 22:50:26;  author: john;  state: Exp;
1541 Changed shorts to ints in parameters.
1542 ----------------------------
1543 revision 1.4
1544 date: 1993/10/15 16:22:26;  author: john;  state: Exp;
1545 *** empty log message ***
1546 ----------------------------
1547 revision 1.3
1548 date: 1993/09/29 17:31:27;  author: john;  state: Exp;
1549 optimized vesa pixel stuff
1550 ----------------------------
1551 revision 1.2
1552 date: 1993/09/29 16:15:15;  author: john;  state: Exp;
1553 optimized
1554 ----------------------------
1555 revision 1.1
1556 date: 1993/09/08 11:44:09;  author: john;  state: Exp;
1557 Initial revision
1558 =============================================================================
1559 RCS file: /Buggin/miner/source/2d/poly.c,v
1560 Working file: 2d/poly.c
1561 head: 1.1
1562 description: Graphical routines for drawing polygons.
1563 ----------------------------
1564 revision 1.1
1565 date: 1995/03/09 09:21:47;  author: allender;  state: Exp;
1566 Initial revision
1567 ----------------------------
1568 revision 1.5
1569 date: 1994/11/13 13:03:43;  author: john;  state: Exp;
1570 Added paged out bit in bitmap structure.  Commented out the
1571 poly code that is never used.
1572 ----------------------------
1573 revision 1.4
1574 date: 1994/03/14 16:56:13;  author: john;  state: Exp;
1575 Changed grs_bitmap structure to include bm_flags.
1576 ----------------------------
1577 revision 1.3
1578 date: 1993/10/15 16:23:14;  author: john;  state: Exp;
1579 y
1580 ----------------------------
1581 revision 1.2
1582 date: 1993/10/08 14:30:39;  author: john;  state: Exp;
1583 *** empty log message ***
1584 ----------------------------
1585 revision 1.1
1586 date: 1993/09/08 11:44:13;  author: john;  state: Exp;
1587 Initial revision
1588 =============================================================================
1589 RCS file: /Buggin/miner/source/2d/rect.c,v
1590 Working file: 2d/rect.c
1591 head: 1.1
1592 description: Graphical routines for drawing rectangles.
1593 ----------------------------
1594 revision 1.1
1595 date: 1995/03/09 09:22:22;  author: allender;  state: Exp;
1596 Initial revision
1597 ----------------------------
1598 revision 1.3
1599 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
1600 Changed shorts to ints in parameters.
1601 ----------------------------
1602 revision 1.2
1603 date: 1993/10/15 16:23:27;  author: john;  state: Exp;
1604 y
1605 ----------------------------
1606 revision 1.1
1607 date: 1993/09/08 11:44:22;  author: john;  state: Exp;
1608 Initial revision
1609 =============================================================================
1610 RCS file: /Smoke/miner/source/2d/rle.c,v
1611 Working file: 2d/rle.c
1612 head: 1.10
1613 description: Routines to do run length encoding/decoding
1614 on bitmaps.
1615 ----------------------------
1616 revision 1.10
1617 date: 1995/08/14 14:26:34;  author: allender;  state: Exp;
1618 changed transparency color to 0
1619 ----------------------------
1620 revision 1.9
1621 date: 1995/07/05 16:07:49;  author: allender;  state: Exp;
1622 transparency/kitchen chagnes
1623 ----------------------------
1624 revision 1.8
1625 date: 1995/05/12 11:54:03;  author: allender;  state: Exp;
1626 changed memory stuff again
1627 ----------------------------
1628 revision 1.7
1629 date: 1995/05/11 12:49:19;  author: allender;  state: Exp;
1630 change transparency color
1631 ----------------------------
1632 revision 1.6
1633 date: 1995/05/04 20:00:30;  author: allender;  state: Exp;
1634 use NewPtr instead of malloc.  Fix gr_rle_scanline (which caused me
1635 *many* hours of frustration!!!!)
1636 ----------------------------
1637 revision 1.5
1638 date: 1995/05/01 08:40:32;  author: allender;  state: Exp;
1639 trying to find memory bug....this stuff works -- it's johns code
1640 ----------------------------
1641 revision 1.4
1642 date: 1995/04/27 07:38:24;  author: allender;  state: Exp;
1643 new rle code ala John
1644 ----------------------------
1645 revision 1.3
1646 date: 1995/04/19 14:36:06;  author: allender;  state: Exp;
1647 *** empty log message ***
1648 ----------------------------
1649 revision 1.2
1650 date: 1995/04/18 12:08:30;  author: allender;  state: Exp;
1651 *** empty log message ***
1652 ----------------------------
1653 revision 1.1
1654 date: 1995/03/09 09:23:04;  author: allender;  state: Exp;
1655 Initial revision
1656 ----------------------------
1657 revision 1.16
1658 date: 1994/11/30 00:55:03;  author: mike;  state: Exp;
1659 optimization
1660 ----------------------------
1661 revision 1.15
1662 date: 1994/11/24 13:24:44;  author: john;  state: Exp;
1663 Made sure that some rep movs had the cld set first.
1664 Took some unused functions out.
1665 ----------------------------
1666 revision 1.14
1667 date: 1994/11/23 16:03:46;  author: john;  state: Exp;
1668 Fixed generic rle'ing to use new bit method.
1669 ----------------------------
1670 revision 1.13
1671 date: 1994/11/23 15:45:51;  author: john;  state: Exp;
1672 Changed to a 3 bit rle scheme.
1673 ----------------------------
1674 revision 1.12
1675 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
1676 Changed shorts to ints in parameters.
1677 ----------------------------
1678 revision 1.11
1679 date: 1994/11/14 17:06:13;  author: john;  state: Exp;
1680 Took out Key_f12.
1681 ----------------------------
1682 revision 1.10
1683 date: 1994/11/14 15:54:09;  author: john;  state: Exp;
1684 Put code in for maybe checking bogus rle data.
1685 ----------------------------
1686 revision 1.9
1687 date: 1994/11/14 15:51:58;  author: john;  state: Exp;
1688 Added rle_disable_caching variable to prove the stability of my rle caching code
1689 to any non-believers.
1690 ----------------------------
1691 revision 1.8
1692 date: 1994/11/10 10:31:20;  author: john;  state: Exp;
1693 Reduce cache buffers to 16.
1694 ----------------------------
1695 revision 1.7
1696 date: 1994/11/09 19:53:43;  author: john;  state: Exp;
1697 Added texture rle caching.
1698 ----------------------------
1699 revision 1.6
1700 date: 1994/11/09 17:41:44;  author: john;  state: Exp;
1701 Made a slow version of rle bitblt to svga, modex.
1702 ----------------------------
1703 revision 1.5
1704 date: 1994/11/09 17:07:50;  author: john;  state: Exp;
1705 Fixed bug with bitmap that gets bigger with rle.
1706 ----------------------------
1707 revision 1.4
1708 date: 1994/11/09 16:35:17;  author: john;  state: Exp;
1709 First version with working RLE bitmaps.
1710 ----------------------------
1711 revision 1.3
1712 date: 1994/10/26 12:54:47;  author: john;  state: Exp;
1713 Fixed bug with decode that used rep movsd instead of 
1714 rep stosd.
1715 ----------------------------
1716 revision 1.2
1717 date: 1994/10/06 17:05:25;  author: john;  state: Exp;
1718 First version of rle stuff.
1719 ----------------------------
1720 revision 1.1
1721 date: 1994/10/06 16:53:34;  author: john;  state: Exp;
1722 Initial revision
1723 =============================================================================
1724 RCS file: /Smoke/miner/source/2d/rle.h,v
1725 Working file: 2d/rle.h
1726 head: 1.2
1727 description: Protypes for rle functions.
1728 ----------------------------
1729 revision 1.2
1730 date: 1995/05/05 16:34:54;  author: allender;  state: Exp;
1731 changed types.h to dtypes.h
1732 ----------------------------
1733 revision 1.1
1734 date: 1995/03/09 09:23:32;  author: allender;  state: Exp;
1735 Initial revision
1736 ----------------------------
1737 revision 1.4
1738 date: 1994/11/10 13:16:01;  author: matt;  state: Exp;
1739 Added includes
1740 ----------------------------
1741 revision 1.3
1742 date: 1994/11/09 19:53:51;  author: john;  state: Exp;
1743 Added texture rle caching.
1744 ----------------------------
1745 revision 1.2
1746 date: 1994/11/09 16:35:18;  author: john;  state: Exp;
1747 First version with working RLE bitmaps.
1748 ----------------------------
1749 revision 1.1
1750 date: 1994/11/09 12:40:17;  author: john;  state: Exp;
1751 Initial revision
1752 =============================================================================
1753 RCS file: /Smoke/miner/source/2d/scanline.c,v
1754 Working file: 2d/scanline.c
1755 head: 1.6
1756 description: Graphical routines for drawing solid scanlines.
1757 ----------------------------
1758 revision 1.6
1759 date: 1995/09/14 14:24:03;  author: allender;  state: Exp;
1760 fixed MW compile error
1761 ----------------------------
1762 revision 1.5
1763 date: 1995/09/14 13:45:17;  author: allender;  state: Exp;
1764 quick optimization for scanline
1765 ----------------------------
1766 revision 1.4
1767 date: 1995/04/27 07:36:05;  author: allender;  state: Exp;
1768 remove some memsets since all old is here now
1769 ----------------------------
1770 revision 1.3
1771 date: 1995/04/19 14:35:33;  author: allender;  state: Exp;
1772 *** empty log message ***
1773 ----------------------------
1774 revision 1.2
1775 date: 1995/04/18 12:03:40;  author: allender;  state: Exp;
1776 *** empty log message ***
1777 ----------------------------
1778 revision 1.1
1779 date: 1995/03/09 09:24:06;  author: allender;  state: Exp;
1780 Initial revision
1781 ----------------------------
1782 revision 1.7
1783 date: 1994/11/18 22:50:48;  author: john;  state: Exp;
1784 Changed a bunch of shorts to ints in calls.
1785 ----------------------------
1786 revision 1.6
1787 date: 1994/09/02 11:40:32;  author: john;  state: Exp;
1788 fixed bug with urect scanline drakening still
1789 only using 16 levels of fade.
1790 ----------------------------
1791 revision 1.5
1792 date: 1994/04/08 16:59:12;  author: john;  state: Exp;
1793 Add fading poly's; Made palette fade 32 instead of 16.
1794 ----------------------------
1795 revision 1.4
1796 date: 1994/03/22 18:36:27;  author: john;  state: Exp;
1797 Added darkening scanlines
1798 ----------------------------
1799 revision 1.3
1800 date: 1993/10/15 16:22:52;  author: john;  state: Exp;
1801 y
1802 ----------------------------
1803 revision 1.2
1804 date: 1993/09/08 11:56:29;  author: john;  state: Exp;
1805 neatened
1806 ----------------------------
1807 revision 1.1
1808 date: 1993/09/08 11:44:27;  author: john;  state: Exp;
1809 Initial revision
1810 =============================================================================
1811 RCS file: /Smoke/miner/source/3d/3d.h,v
1812 Working file: 3d/3d.h
1813 head: 1.2
1814 description: Header file for 3d library
1815 ----------------------------
1816 revision 1.2
1817 date: 1995/09/14 14:08:58;  author: allender;  state: Exp;
1818 return value for g3_draw_sphere
1819 ----------------------------
1820 revision 1.1
1821 date: 1995/05/05 08:48:41;  author: allender;  state: Exp;
1822 Initial revision
1823 =============================================================================
1824 RCS file: /Buggin/miner/source/3d/clipper.h,v
1825 Working file: 3d/clipper.h
1826 head: 1.1
1827 description: Header for clipper.c
1828 ----------------------------
1829 revision 1.1
1830 date: 1995/05/05 08:50:13;  author: allender;  state: Exp;
1831 Initial revision
1832 ----------------------------
1833 revision 1.1
1834 date: 1995/04/17 19:56:58;  author: matt;  state: Exp;
1835 Initial revision
1836 =============================================================================
1837 RCS file: /Smoke/miner/source/3d/draw.c,v
1838 Working file: 3d/draw.c
1839 head: 1.5
1840 description: Drawing routines
1841 ----------------------------
1842 revision 1.5
1843 date: 1995/10/11 00:27:17;  author: allender;  state: Exp;
1844 remove free_num_point settings to 0
1845 ----------------------------
1846 revision 1.4
1847 date: 1995/09/14 14:08:27;  author: allender;  state: Exp;
1848 co -l 3d.h
1849 g3_draw_sphere need to return value in new PPC stuff
1850 ----------------------------
1851 revision 1.3
1852 date: 1995/09/13 11:30:35;  author: allender;  state: Exp;
1853 removed checkmuldiv in PPC implementation
1854 ----------------------------
1855 revision 1.2
1856 date: 1995/06/25 21:57:41;  author: allender;  state: Exp;
1857 free_point_num problem
1858 ----------------------------
1859 revision 1.1
1860 date: 1995/05/05 08:50:26;  author: allender;  state: Exp;
1861 Initial revision
1862 ----------------------------
1863 revision 1.1
1864 date: 1995/04/17 05:13:45;  author: matt;  state: Exp;
1865 Initial revision
1866 =============================================================================
1867 RCS file: /Smoke/miner/source/3d/globvars.c,v
1868 Working file: 3d/globvars.c
1869 head: 1.2
1870 description: Global variables for 3d
1871 ----------------------------
1872 revision 1.2
1873 date: 1995/09/13 11:30:47;  author: allender;  state: Exp;
1874 added fCanv_w2 and vCanv_h2 for PPC implementation
1875 ----------------------------
1876 revision 1.1
1877 date: 1995/05/05 08:50:48;  author: allender;  state: Exp;
1878 Initial revision
1879 ----------------------------
1880 revision 1.1
1881 date: 1995/04/17 04:24:57;  author: matt;  state: Exp;
1882 Initial revision
1883 =============================================================================
1884 RCS file: /Smoke/miner/source/3d/globvars.h,v
1885 Working file: 3d/globvars.h
1886 head: 1.2
1887 description: Private (internal) header for 3d library
1888 ----------------------------
1889 revision 1.2
1890 date: 1995/09/13 11:31:19;  author: allender;  state: Exp;
1891 added fCanv_w2 and vCanv_h2 for PPC implementation
1892 ----------------------------
1893 revision 1.1
1894 date: 1995/05/05 08:51:02;  author: allender;  state: Exp;
1895 Initial revision
1896 ----------------------------
1897 revision 1.1
1898 date: 1995/04/17 04:07:58;  author: matt;  state: Exp;
1899 Initial revision
1900 =============================================================================
1901 RCS file: /Buggin/miner/source/3d/horizon.c,v
1902 Working file: 3d/horizon.c
1903 head: 1.1
1904 description: Horizon drawer
1905 ----------------------------
1906 revision 1.1
1907 date: 1995/05/05 08:51:14;  author: allender;  state: Exp;
1908 Initial revision
1909 ----------------------------
1910 revision 1.1
1911 date: 1995/04/17 06:38:57;  author: matt;  state: Exp;
1912 Initial revision
1913 =============================================================================
1914 RCS file: /Smoke/miner/source/3d/instance.c,v
1915 Working file: 3d/instance.c
1916 head: 1.2
1917 description: Instancing routines
1918 ----------------------------
1919 revision 1.2
1920 date: 1995/06/12 12:36:57;  author: allender;  state: Exp;
1921 fixed bug where g3_start_instance_angles recursively called itself
1922 ----------------------------
1923 revision 1.1
1924 date: 1995/05/05 08:51:27;  author: allender;  state: Exp;
1925 Initial revision
1926 ----------------------------
1927 revision 1.1
1928 date: 1995/04/17 06:43:29;  author: matt;  state: Exp;
1929 Initial revision
1930 =============================================================================
1931 RCS file: /Smoke/miner/source/3d/interp.c,v
1932 Working file: 3d/interp.c
1933 head: 1.4
1934 description: Polygon object interpreter
1935 ----------------------------
1936 revision 1.4
1937 date: 1995/10/10 22:20:09;  author: allender;  state: Exp;
1938 new morphing code from Matt
1939 ----------------------------
1940 revision 1.3
1941 date: 1995/08/31 15:40:24;  author: allender;  state: Exp;
1942 swap color data correctly
1943 ----------------------------
1944 revision 1.2
1945 date: 1995/05/11 13:06:38;  author: allender;  state: Exp;
1946 fix int --> short problem
1947 ----------------------------
1948 revision 1.1
1949 date: 1995/05/05 08:51:41;  author: allender;  state: Exp;
1950 Initial revision
1951 ----------------------------
1952 revision 1.1
1953 date: 1995/04/17 06:44:33;  author: matt;  state: Exp;
1954 Initial revision
1955 =============================================================================
1956 RCS file: /Buggin/miner/source/3d/matrix.c,v
1957 Working file: 3d/matrix.c
1958 head: 1.1
1959 description: Matrix setup & manipulation routines
1960 ----------------------------
1961 revision 1.1
1962 date: 1995/05/05 08:52:11;  author: allender;  state: Exp;
1963 Initial revision
1964 ----------------------------
1965 revision 1.1
1966 date: 1995/04/17 04:14:34;  author: matt;  state: Exp;
1967 Initial revision
1968 =============================================================================
1969 RCS file: /Smoke/miner/source/3d/points.c,v
1970 Working file: 3d/points.c
1971 head: 1.3
1972 description: Routines for point definition, rotation, etc.
1973 ----------------------------
1974 revision 1.3
1975 date: 1995/09/21 17:29:40;  author: allender;  state: Exp;
1976 changed project_point to overflow if z <= 0
1977 ----------------------------
1978 revision 1.2
1979 date: 1995/09/13 11:31:28;  author: allender;  state: Exp;
1980 removed checkmuldiv from g3_project_point
1981 ----------------------------
1982 revision 1.1
1983 date: 1995/05/05 08:52:35;  author: allender;  state: Exp;
1984 Initial revision
1985 ----------------------------
1986 revision 1.1
1987 date: 1995/04/17 04:32:25;  author: matt;  state: Exp;
1988 Initial revision
1989 =============================================================================
1990 RCS file: /Smoke/miner/source/3d/rod.c,v
1991 Working file: 3d/rod.c
1992 head: 1.2
1993 description: Rod routines
1994 ----------------------------
1995 revision 1.2
1996 date: 1995/09/13 11:31:46;  author: allender;  state: Exp;
1997 removed checkmuldiv in PPC implemenation
1998 ----------------------------
1999 revision 1.1
2000 date: 1995/05/05 08:52:45;  author: allender;  state: Exp;
2001 Initial revision
2002 ----------------------------
2003 revision 1.1
2004 date: 1995/04/17 06:42:08;  author: matt;  state: Exp;
2005 Initial revision
2006 =============================================================================
2007 RCS file: /Smoke/miner/source/3d/setup.c,v
2008 Working file: 3d/setup.c
2009 head: 1.4
2010 description: Setup for 3d library
2011 ----------------------------
2012 revision 1.4
2013 date: 1995/10/11 00:27:04;  author: allender;  state: Exp;
2014 bash free_num_points to 0
2015 ----------------------------
2016 revision 1.3
2017 date: 1995/09/13 11:31:58;  author: allender;  state: Exp;
2018 calc for fCanv_w2 and fCanv_h2
2019 ----------------------------
2020 revision 1.2
2021 date: 1995/06/25 21:57:57;  author: allender;  state: Exp;
2022 *** empty log message ***
2023 ----------------------------
2024 revision 1.1
2025 date: 1995/05/05 08:52:54;  author: allender;  state: Exp;
2026 Initial revision
2027 ----------------------------
2028 revision 1.1
2029 date: 1995/04/17 03:59:01;  author: matt;  state: Exp;
2030 Initial revision
2031 =============================================================================
2032 RCS file: /Smoke/miner/source/appltalk/appltalk.c,v
2033 Working file: appltalk/appltalk.c
2034 head: 1.17
2035 description: Appletalk code for initialization, sending, receiving, etc.
2036 ----------------------------
2037 revision 1.17
2038 date: 1995/10/18 17:13:12;  author: allender;  state: Exp;
2039 lock down all appletalk stuff
2040 ----------------------------
2041 revision 1.16
2042 date: 1995/10/11 01:00:10;  author: allender;  state: Exp;
2043 new implementation of get_zone_names
2044 ----------------------------
2045 revision 1.15
2046 date: 1995/10/05 09:28:44;  author: allender;  state: Exp;
2047 increased the MAX_APPLETALK_BUFS to 128...there appeared to be crashes
2048 related to running out of queue elements in the free queue for the
2049 socket listener
2050 ----------------------------
2051 revision 1.14
2052 date: 1995/09/23 09:37:16;  author: allender;  state: Exp;
2053 removed 'free' call on string that didn't need to be freed
2054 try and handle NULL zone names properly...does this happen?
2055 ----------------------------
2056 revision 1.13
2057 date: 1995/09/21 14:30:58;  author: allender;  state: Exp;
2058 attemp to release NBP binding when registering new game
2059 ----------------------------
2060 revision 1.12
2061 date: 1995/09/21 12:57:29;  author: allender;  state: Exp;
2062 use two sockets for appletalk: reading and writing to try
2063 and reduce time spent in socket code.  Added DDP packet type
2064 for Descent appletalk packets
2065 ----------------------------
2066 revision 1.11
2067 date: 1995/09/19 11:45:36;  author: allender;  state: Exp;
2068 don't free pointer after c2pstr
2069 ----------------------------
2070 revision 1.10
2071 date: 1995/09/18 08:04:33;  author: allender;  state: Exp;
2072 fixed problem with getting zone names (duplictates
2073 and missing ones).  Added function to get my zone name
2074 ----------------------------
2075 revision 1.9
2076 date: 1995/09/13 08:40:52;  author: allender;  state: Exp;
2077 removed Warning statements, and beefed up return values.  Call routine
2078 ...use variable instead of function to check for vm
2079 ----------------------------
2080 revision 1.8
2081 date: 1995/08/31 11:49:29;  author: allender;  state: Exp;
2082 close socket in appletalk_close()  (DOH!!!)
2083 ----------------------------
2084 revision 1.7
2085 date: 1995/08/31 10:33:57;  author: allender;  state: Exp;
2086 do_make
2087 cd ::network
2088 open network.c
2089 open network.c
2090 ----------------------------
2091 revision 1.6
2092 date: 1995/08/31 10:02:38;  author: allender;  state: Exp;
2093 create seperate data area for queue buffers as opposed
2094 to packet buffers to fix nasty bug.
2095 ----------------------------
2096 revision 1.5
2097 date: 1995/08/31 07:50:14;  author: allender;  state: Exp;
2098 put in Int3's for debugging
2099 ----------------------------
2100 revision 1.4
2101 date: 1995/08/30 19:56:59;  author: allender;  state: Exp;
2102 fixed possible signed/unsigned problem with GetNodeAddress
2103 ----------------------------
2104 revision 1.3
2105 date: 1995/08/30 17:13:59;  author: allender;  state: Exp;
2106 fix up packet pitching again!!!
2107 ----------------------------
2108 revision 1.2
2109 date: 1995/08/30 16:58:08;  author: allender;  state: Exp;
2110 fix packet get to pitch packets sent from myself.  NPBExtract
2111 needs indices from 1, not 0
2112 ----------------------------
2113 revision 1.1
2114 date: 1995/08/30 16:10:48;  author: allender;  state: Exp;
2115 Initial revision
2116  Initialize appletalk.  Make the appropriate checks to be sure that the correct
2117  version of appletalk is available, and that appletalk is active.  Returns 0 if
2118  appletalk initialized okay, -1 if something is amuk.
2119 =============================================================================
2120 RCS file: /Smoke/miner/source/appltalk/appltalk.h,v
2121 Working file: appltalk/appltalk.h
2122 head: 1.5
2123 description:  header file which defines appletalk constants and structures
2124 ----------------------------
2125 revision 1.5
2126 date: 1995/10/11 01:00:31;  author: allender;  state: Exp;
2127 changed prototype for get_zone_names
2128 ----------------------------
2129 revision 1.4
2130 date: 1995/09/18 08:05:06;  author: allender;  state: Exp;
2131 added function to get my zone name
2132 ----------------------------
2133 revision 1.3
2134 date: 1995/09/12 09:19:36;  author: allender;  state: Exp;
2135 added value to register netgame to help avoid name conflicts
2136 ----------------------------
2137 revision 1.2
2138 date: 1995/09/08 17:14:15;  author: allender;  state: Exp;
2139 fixed typedefs for 68K build
2140 ----------------------------
2141 revision 1.1
2142 date: 1995/08/30 16:10:54;  author: allender;  state: Exp;
2143 Initial revision
2144 =============================================================================
2145 RCS file: /Smoke/miner/source/bios/debug.c,v
2146 Working file: bios/debug.c
2147 head: 1.2
2148 description: Header for monochrome/mprintf functions
2149 ----------------------------
2150 revision 1.2
2151 date: 1995/06/16 15:28:57;  author: allender;  state: Exp;
2152 fixed "unused" pragma
2153 ----------------------------
2154 revision 1.1
2155 date: 1995/05/05 09:54:14;  author: allender;  state: Exp;
2156 Initial revision
2157 =============================================================================
2158 RCS file: /Smoke/miner/source/bios/gtimer.h,v
2159 Working file: bios/gtimer.h
2160 head: 1.2
2161 description: Header for timer functions
2162 ----------------------------
2163 revision 1.2
2164 date: 1995/05/11 13:04:25;  author: allender;  state: Exp;
2165 no a5 references if under powerPC code
2166 ----------------------------
2167 revision 1.1
2168 date: 1995/05/05 09:31:09;  author: allender;  state: Exp;
2169 Initial revision
2170 ----------------------------
2171 revision 1.1
2172 date: 1995/03/21 13:32:43;  author: allender;  state: Exp;
2173 Initial revision
2174 ----------------------------
2175 revision 1.5
2176 date: 1994/11/15 12:04:15;  author: john;  state: Exp;
2177 Cleaned up timer code a bit... took out unused functions
2178 like timer_get_milliseconds, etc.
2179 ----------------------------
2180 revision 1.4
2181 date: 1994/04/28 23:50:08;  author: john;  state: Exp;
2182 Changed calling for init_timer.  Made the function that the
2183 timer calls be a far function. All of this was done to make
2184 our timer system compatible with the HMI sound stuff.
2185 ----------------------------
2186 revision 1.3
2187 date: 1994/02/17 15:57:12;  author: john;  state: Exp;
2188 Changed key libary to C.
2189 ----------------------------
2190 revision 1.2
2191 date: 1994/01/18 10:58:34;  author: john;  state: Exp;
2192 Added timer_get_fixed_seconds
2193 ----------------------------
2194 revision 1.1
2195 date: 1993/07/10 13:10:41;  author: matt;  state: Exp;
2196 Initial revision
2197 =============================================================================
2198 RCS file: /Smoke/miner/source/bios/joy.h,v
2199 Working file: bios/joy.h
2200 head: 1.4
2201 description: Headers for joystick functions
2202 ----------------------------
2203 revision 1.4
2204 date: 1995/10/17 15:36:25;  author: allender;  state: Exp;
2205 flightstick pro code removed
2206 ----------------------------
2207 revision 1.3
2208 date: 1995/08/18 10:17:25;  author: allender;  state: Exp;
2209 new functions and structures for joystick reading
2210 ----------------------------
2211 revision 1.2
2212 date: 1995/05/05 16:34:05;  author: allender;  state: Exp;
2213 changes types.h to dtypes.h
2214 ----------------------------
2215 revision 1.1
2216 date: 1995/05/05 09:30:03;  author: allender;  state: Exp;
2217 Initial revision
2218 ----------------------------
2219 revision 1.16
2220 date: 1995/02/14 11:17:13;  author: john;  state: Exp;
2221 Added BIOS readings for stick.
2222 ----------------------------
2223 revision 1.15
2224 date: 1995/02/14 10:09:58;  author: john;  state: Exp;
2225 Added OS2 switch.
2226 ----------------------------
2227 revision 1.14
2228 date: 1994/12/28 13:49:20;  author: john;  state: Exp;
2229 Added function to set joystick for slow reading
2230 ----------------------------
2231 revision 1.13
2232 date: 1994/10/13 11:36:06;  author: john;  state: Exp;
2233 Made joy_down_time be kept track of in fixed seconds,
2234 not ticks.
2235 ----------------------------
2236 revision 1.12
2237 date: 1994/10/12 17:03:16;  author: john;  state: Exp;
2238 Added prototype for joy_get_scaled_reading.
2239 ----------------------------
2240 revision 1.11
2241 date: 1994/10/12 16:57:55;  author: john;  state: Exp;
2242 Added function to set a joystick button's state.
2243 ----------------------------
2244 revision 1.10
2245 date: 1994/09/22 16:09:00;  author: john;  state: Exp;
2246 Fixed some virtual memory lockdown problems with timer and
2247 joystick.
2248 ----------------------------
2249 revision 1.9
2250 date: 1994/08/31 09:54:57;  author: john;  state: Exp;
2251 *** empty log message ***
2252 ----------------------------
2253 revision 1.8
2254 date: 1994/08/29 21:02:24;  author: john;  state: Exp;
2255 Added joy_set_cal_values...
2256 ----------------------------
2257 revision 1.7
2258 date: 1994/08/29 20:51:52;  author: john;  state: Exp;
2259 Added better cyberman support; also, joystick calibration
2260 value return funcctiionn,
2261 ----------------------------
2262 revision 1.6
2263 date: 1994/07/01 10:55:44;  author: john;  state: Exp;
2264 Fixed some bugs... added support for 4 axis.
2265 ----------------------------
2266 revision 1.5
2267 date: 1994/06/30 20:36:51;  author: john;  state: Exp;
2268 Revamped joystick code.
2269 ----------------------------
2270 revision 1.4
2271 date: 1994/04/22 12:52:10;  author: john;  state: Exp;
2272 *** empty log message ***
2273 ----------------------------
2274 revision 1.3
2275 date: 1994/01/18 13:53:39;  author: john;  state: Exp;
2276 Made all joystick functions return int's instead of
2277 shorts.  Also made the stick reading be CPU speed
2278 independant by using the timer_get_Stamp_64 
2279 function.
2280 ----------------------------
2281 revision 1.2
2282 date: 1994/01/18 10:58:42;  author: john;  state: Exp;
2283 *** empty log message ***
2284 ----------------------------
2285 revision 1.1
2286 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
2287 Initial revision
2288 =============================================================================
2289 RCS file: /Smoke/miner/source/bios/joyc.c,v
2290 Working file: bios/joyc.c
2291 head: 1.6
2292 description: Routines for joystick reading.
2293 ----------------------------
2294 revision 1.6
2295 date: 1995/10/30 11:10:44;  author: allender;  state: Exp;
2296 lock down adb structures for stick info to try and get by
2297 VM bug in 7.5 -- not quite yet though
2298 ----------------------------
2299 revision 1.5
2300 date: 1995/10/17 15:36:05;  author: allender;  state: Exp;
2301 new joystick code ala Dave D w/o Flightstick pro support
2302 ----------------------------
2303 revision 1.4
2304 date: 1995/08/18 10:16:48;  author: allender;  state: Exp;
2305 put back in some joystick functions -- added support
2306 for thrustmaster stick direct reading of axis
2307 ----------------------------
2308 revision 1.3
2309 date: 1995/07/26 16:58:17;  author: allender;  state: Exp;
2310 get coords right for joystick
2311 ----------------------------
2312 revision 1.2
2313 date: 1995/06/25 21:56:04;  author: allender;  state: Exp;
2314 removed and modified joy handling routines for the mac
2315 ----------------------------
2316 revision 1.1
2317 date: 1995/05/05 09:55:34;  author: allender;  state: Exp;
2318 Initial revision
2319 ----------------------------
2320 revision 1.32
2321 date: 1995/01/12 13:16:40;  author: john;  state: Exp;
2322 Made it so that joystick can't lose an axis
2323 by 1 weird reading. Reading has to occurr during
2324 calibration for this to happen.
2325 ----------------------------
2326 revision 1.31
2327 date: 1994/12/28 15:56:03;  author: john;  state: Exp;
2328 Fixed bug that refused to read joysticks whose 
2329 min,cen,max were less than 100 apart.
2330 ----------------------------
2331 revision 1.30
2332 date: 1994/12/28 15:31:53;  author: john;  state: Exp;
2333 Added code to read joystick axis not all at one time.
2334 ----------------------------
2335 revision 1.29
2336 date: 1994/12/27 15:44:36;  author: john;  state: Exp;
2337 Made the joystick timeout be at 1/100th of a second, 
2338 regardless of CPU speed.
2339 ----------------------------
2340 revision 1.28
2341 date: 1994/12/04 11:54:54;  author: john;  state: Exp;
2342 Made stick read at whatever rate the clock is at, not
2343 at 18.2 times/second.
2344 ----------------------------
2345 revision 1.27
2346 date: 1994/11/29 02:25:40;  author: john;  state: Exp;
2347 Made it so that the scaled reading returns 0 
2348 if the calibration factors look funny..
2349 ----------------------------
2350 revision 1.26
2351 date: 1994/11/22 11:08:07;  author: john;  state: Exp;
2352 Commented out the ARCADE joystick.
2353 ----------------------------
2354 revision 1.25
2355 date: 1994/11/14 19:40:26;  author: john;  state: Exp;
2356 Fixed bug with no joystick being detected.
2357 ----------------------------
2358 revision 1.24
2359 date: 1994/11/14 19:36:40;  author: john;  state: Exp;
2360 Took out initial cheapy calibration.
2361 ----------------------------
2362 revision 1.23
2363 date: 1994/11/14 19:13:27;  author: john;  state: Exp;
2364 Took out the calibration in joy_init
2365 ----------------------------
2366 revision 1.22
2367 date: 1994/10/17 10:09:57;  author: john;  state: Exp;
2368 Made the state look at last_State, so that a joy_flush
2369 doesn't cause a new down state to be added next reading.
2370 ----------------------------
2371 revision 1.21
2372 date: 1994/10/13 11:36:23;  author: john;  state: Exp;
2373 Made joy_down_time be kept track of in fixed seconds,
2374 not ticks.
2375 ----------------------------
2376 revision 1.20
2377 date: 1994/10/12 16:58:50;  author: john;  state: Exp;
2378 Fixed bug w/ previous comment.
2379 ----------------------------
2380 revision 1.19
2381 date: 1994/10/12 16:57:44;  author: john;  state: Exp;
2382 Added function to set a joystick button's state.
2383 ----------------------------
2384 revision 1.18
2385 date: 1994/10/11 10:20:13;  author: john;  state: Exp;
2386 Fixed Flightstick Pro/
2387 ..
2388 ----------------------------
2389 revision 1.17
2390 date: 1994/09/29 18:29:20;  author: john;  state: Exp;
2391 *** empty log message ***
2392 ----------------------------
2393 revision 1.16
2394 date: 1994/09/27 19:17:23;  author: john;  state: Exp;
2395 Added code so that is joy_init is never called, joystick is not
2396 used at all.
2397 ----------------------------
2398 revision 1.15
2399 date: 1994/09/22 16:09:23;  author: john;  state: Exp;
2400 Fixed some virtual memory lockdown problems with timer and
2401 joystick.
2402 ----------------------------
2403 revision 1.14
2404 date: 1994/09/16 11:44:42;  author: john;  state: Exp;
2405 Fixed bug with slow joystick.
2406 ----------------------------
2407 revision 1.13
2408 date: 1994/09/16 11:36:15;  author: john;  state: Exp;
2409 Fixed bug with reading non-present channels.
2410 ----------------------------
2411 revision 1.12
2412 date: 1994/09/15 20:52:48;  author: john;  state: Exp;
2413 rme john
2414 Added support for the Arcade style joystick.
2415 ----------------------------
2416 revision 1.11
2417 date: 1994/09/13 20:04:49;  author: john;  state: Exp;
2418 Fixed bug with joystick button down_time.
2419 ----------------------------
2420 revision 1.10
2421 date: 1994/09/10 13:48:07;  author: john;  state: Exp;
2422 Made all 20 buttons read.
2423 ----------------------------
2424 revision 1.9
2425 date: 1994/08/31 09:55:02;  author: john;  state: Exp;
2426 *** empty log message ***
2427 ----------------------------
2428 revision 1.8
2429 date: 1994/08/29 21:02:14;  author: john;  state: Exp;
2430 Added joy_set_cal_values...
2431 ----------------------------
2432 revision 1.7
2433 date: 1994/08/29 20:52:17;  author: john;  state: Exp;
2434 Added better cyberman support; also, joystick calibration
2435 value return funcctiionn,
2436 ----------------------------
2437 revision 1.6
2438 date: 1994/08/24 18:53:12;  author: john;  state: Exp;
2439 Made Cyberman read like normal mouse; added dpmi module; moved
2440 mouse from assembly to c. Made mouse buttons return time_down.
2441 ----------------------------
2442 revision 1.5
2443 date: 1994/07/14 22:12:23;  author: john;  state: Exp;
2444 Used intrinsic forms of outp to fix vmm error.
2445 ----------------------------
2446 revision 1.4
2447 date: 1994/07/07 19:52:59;  author: matt;  state: Exp;
2448 Made joy_init() return success/fail flag
2449 Made joy_init() properly detect a stick if one is plugged in after joy_init()
2450 was called the first time.
2451 ----------------------------
2452 revision 1.3
2453 date: 1994/07/01 10:55:55;  author: john;  state: Exp;
2454 Fixed some bugs... added support for 4 axis.
2455 ----------------------------
2456 revision 1.2
2457 date: 1994/06/30 20:36:55;  author: john;  state: Exp;
2458 Revamped joystick code.
2459 ----------------------------
2460 revision 1.1
2461 date: 1994/06/30 15:42:15;  author: john;  state: Exp;
2462 Initial revision
2463 =============================================================================
2464 RCS file: /Smoke/miner/source/bios/key.c,v
2465 Working file: bios/key.c
2466 head: 1.19
2467 description: Functions for keyboard handler.
2468 ----------------------------
2469 revision 1.19
2470 date: 1995/11/14 14:23:17;  author: allender;  state: Exp;
2471 reallocate UPP when initing keyboard
2472 ----------------------------
2473 revision 1.18
2474 date: 1995/10/21 23:47:49;  author: allender;  state: Exp;
2475 call GetOSEvent with all events -- screwed up thrustmaster stuff
2476 ----------------------------
2477 revision 1.17
2478 date: 1995/10/17 15:35:45;  author: allender;  state: Exp;
2479 only get keyup and keydown events in GetOSEvent
2480 ----------------------------
2481 revision 1.16
2482 date: 1995/09/06 13:08:31;  author: allender;  state: Exp;
2483 fixed command modifier for keys
2484 ----------------------------
2485 revision 1.15
2486 date: 1995/08/25 11:06:43;  author: allender;  state: Exp;
2487 changed handler to key apprpriate track of time keys held down
2488 ----------------------------
2489 revision 1.14
2490 date: 1995/08/25 09:38:36;  author: allender;  state: Exp;
2491 installed handler in key_inkey_time when not installed
2492 ----------------------------
2493 revision 1.13
2494 date: 1995/08/18 10:15:52;  author: allender;  state: Exp;
2495 use vbl interrupt for keyboard handler to get keystrokes
2496 more often because of high frame rate
2497 ----------------------------
2498 revision 1.12
2499 date: 1995/07/26 16:57:35;  author: allender;  state: Exp;
2500 new style keyboard handler using getOSEvent ala DF
2501 ----------------------------
2502 revision 1.11
2503 date: 1995/07/13 15:11:25;  author: allender;  state: Exp;
2504 fixed totally bogus key_shifted array
2505 ----------------------------
2506 revision 1.10
2507 date: 1995/07/13 11:24:23;  author: allender;  state: Exp;
2508 trap checking for scancodes at 128 and not 256
2509 ----------------------------
2510 revision 1.9
2511 date: 1995/05/15 13:55:40;  author: allender;  state: Exp;
2512 change prototypes for keyboard_proc
2513 ----------------------------
2514 revision 1.8
2515 date: 1995/05/12 14:54:09;  author: allender;  state: Exp;
2516 make key_to_ascii returned unsigned char instead of char
2517 ----------------------------
2518 revision 1.7
2519 date: 1995/05/12 12:19:13;  author: allender;  state: Exp;
2520 added call to mouse handler to get button pressed during
2521 interrupt time
2522 ----------------------------
2523 revision 1.6
2524 date: 1995/05/11 13:04:44;  author: allender;  state: Exp;
2525 fixed keyboard handling.   Removed gestalt handing -- should be in
2526 macinit
2527 ----------------------------
2528 revision 1.5
2529 date: 1995/05/04 20:02:43;  author: allender;  state: Exp;
2530 still working
2531 ----------------------------
2532 revision 1.4
2533 date: 1995/04/05 13:49:48;  author: allender;  state: Exp;
2534 *** empty log message ***
2535 ----------------------------
2536 revision 1.3
2537 date: 1995/03/21 13:39:51;  author: allender;  state: Exp;
2538 *** empty log message ***
2539 ----------------------------
2540 revision 1.2
2541 date: 1995/03/21 13:28:11;  author: allender;  state: Exp;
2542 *** empty log message ***
2543 ----------------------------
2544 revision 1.1
2545 date: 1995/03/09 09:32:25;  author: allender;  state: Exp;
2546 Initial revision
2547 ----------------------------
2548 revision 1.34
2549 date: 1995/01/14 19:19:31;  author: john;  state: Exp;
2550 Made so when you press Shift+Baskspace, it release keys autmatically.
2551 ----------------------------
2552 revision 1.33
2553 date: 1994/12/13 09:21:48;  author: john;  state: Exp;
2554 Took out keyd_editor_mode, and KEY_DEBUGGED stuff for NDEBUG versions.
2555 ----------------------------
2556 revision 1.32
2557 date: 1994/11/12 13:52:01;  author: john;  state: Exp;
2558 Fixed bug with code that cleared bios buffer.
2559 ----------------------------
2560 revision 1.31
2561 date: 1994/10/24 15:16:16;  author: john;  state: Exp;
2562 Added code to detect KEY_PAUSE.
2563 ----------------------------
2564 revision 1.30
2565 date: 1994/10/24 13:57:53;  author: john;  state: Exp;
2566 Hacked in support for pause key onto code 0x61.
2567 ----------------------------
2568 revision 1.29
2569 date: 1994/10/21 15:18:13;  author: john;  state: Exp;
2570 *** empty log message ***
2571 ----------------------------
2572 revision 1.28
2573 date: 1994/10/21 15:17:24;  author: john;  state: Exp;
2574 Made LSHIFT+BACKSPACE do what PrtScr used to.
2575 ----------------------------
2576 revision 1.27
2577 date: 1994/09/22 16:09:18;  author: john;  state: Exp;
2578 Fixed some virtual memory lockdown problems with timer and
2579 joystick.
2580 ----------------------------
2581 revision 1.26
2582 date: 1994/09/15 21:32:47;  author: john;  state: Exp;
2583 Added bounds checking for down_count scancode
2584 parameter.
2585 ----------------------------
2586 revision 1.25
2587 date: 1994/08/31 12:22:20;  author: john;  state: Exp;
2588 Added KEY_DEBUGGED
2589 ----------------------------
2590 revision 1.24
2591 date: 1994/08/24 18:53:48;  author: john;  state: Exp;
2592 Made Cyberman read like normal mouse; added dpmi module; moved
2593 mouse from assembly to c. Made mouse buttons return time_down.
2594 ----------------------------
2595 revision 1.23
2596 date: 1994/08/18 15:17:51;  author: john;  state: Exp;
2597 *** empty log message ***
2598 ----------------------------
2599 revision 1.22
2600 date: 1994/08/18 15:16:38;  author: john;  state: Exp;
2601 fixed some bugs with clear_key_times and then
2602 removed it because i fixed key_flush to do the
2603 same.
2604 ----------------------------
2605 revision 1.21
2606 date: 1994/08/17 19:01:25;  author: john;  state: Exp;
2607 Attempted to fix a bug with a key being held down
2608 key_flush called, then the key released having too 
2609 long of a time.
2610 ----------------------------
2611 revision 1.20
2612 date: 1994/08/08 10:43:48;  author: john;  state: Exp;
2613 Recorded when a key was pressed for key_inkey_time.
2614 ----------------------------
2615 revision 1.19
2616 date: 1994/06/22 15:00:03;  author: john;  state: Exp;
2617 Made keyboard close automatically on exit.
2618 ----------------------------
2619 revision 1.18
2620 date: 1994/06/21 09:16:29;  author: john;  state: Exp;
2621 *** empty log message ***
2622 ----------------------------
2623 revision 1.17
2624 date: 1994/06/21 09:08:23;  author: john;  state: Exp;
2625 *** empty log message ***
2626 ----------------------------
2627 revision 1.16
2628 date: 1994/06/21 09:05:01;  author: john;  state: Exp;
2629 *** empty log message ***
2630 ----------------------------
2631 revision 1.15
2632 date: 1994/06/21 09:04:24;  author: john;  state: Exp;
2633 Made PrtScreen do an int5
2634 ----------------------------
2635 revision 1.14
2636 date: 1994/06/17 17:17:06;  author: john;  state: Exp;
2637 Added keyd_time_last_key_was_pressed or something like that.
2638 ----------------------------
2639 revision 1.13
2640 date: 1994/05/14 13:55:16;  author: matt;  state: Exp;
2641 Added #define to control key passing to bios
2642 ----------------------------
2643 revision 1.12
2644 date: 1994/05/05 18:09:39;  author: john;  state: Exp;
2645 Took out BIOS to prevent stuck keys.
2646 ----------------------------
2647 revision 1.11
2648 date: 1994/05/03 17:39:12;  author: john;  state: Exp;
2649 *** empty log message ***
2650 ----------------------------
2651 revision 1.10
2652 date: 1994/04/29 12:14:20;  author: john;  state: Exp;
2653 Locked all memory used during interrupts so that program
2654 won't hang when using virtual memory.
2655 ----------------------------
2656 revision 1.9
2657 date: 1994/04/28 23:49:41;  author: john;  state: Exp;
2658 Made key_flush flush more keys and also did something else but i forget what.
2659 ----------------------------
2660 revision 1.8
2661 date: 1994/04/22 12:52:12;  author: john;  state: Exp;
2662 *** empty log message ***
2663 ----------------------------
2664 revision 1.7
2665 date: 1994/04/01 10:44:59;  author: mike;  state: Exp;
2666 Change key_getch() to call getch() if our interrupt hasn't been installed.
2667 ----------------------------
2668 revision 1.6
2669 date: 1994/03/09 10:45:48;  author: john;  state: Exp;
2670 Neatend code a bit.
2671 ----------------------------
2672 revision 1.5
2673 date: 1994/02/17 17:24:16;  author: john;  state: Exp;
2674 Neatened up a bit.
2675 ----------------------------
2676 revision 1.4
2677 date: 1994/02/17 16:30:29;  author: john;  state: Exp;
2678 Put in code to pass keys when in debugger.
2679 ----------------------------
2680 revision 1.3
2681 date: 1994/02/17 15:57:59;  author: john;  state: Exp;
2682 Made handler not chain to BIOS handler.
2683 ----------------------------
2684 revision 1.2
2685 date: 1994/02/17 15:56:06;  author: john;  state: Exp;
2686 Initial version.
2687 ----------------------------
2688 revision 1.1
2689 date: 1994/02/17 15:54:07;  author: john;  state: Exp;
2690 Initial revision
2691 =============================================================================
2692 RCS file: /Smoke/miner/source/bios/key.h,v
2693 Working file: bios/key.h
2694 head: 1.9
2695 description: Header for keyboard functions
2696 ----------------------------
2697 revision 1.9
2698 date: 1995/09/06 13:08:42;  author: allender;  state: Exp;
2699 fixed command modifier
2700 ----------------------------
2701 revision 1.8
2702 date: 1995/07/26 16:57:57;  author: allender;  state: Exp;
2703 added command key to key list
2704 ----------------------------
2705 revision 1.7
2706 date: 1995/05/12 14:53:58;  author: allender;  state: Exp;
2707 changed key_to_ascii to return unsigned char now!
2708 ----------------------------
2709 revision 1.6
2710 date: 1995/05/12 14:49:38;  author: allender;  state: Exp;
2711 changed prototype of key_to_ascii to return int instead of
2712 char
2713 ----------------------------
2714 revision 1.5
2715 date: 1995/05/11 13:05:09;  author: allender;  state: Exp;
2716 remove a5 references for powerPC
2717 ----------------------------
2718 revision 1.4
2719 date: 1995/05/05 16:34:32;  author: allender;  state: Exp;
2720 hanges types.h to dtypes.h
2721 ----------------------------
2722 revision 1.3
2723 date: 1995/04/05 11:41:13;  author: allender;  state: Exp;
2724 *** empty log message ***
2725 ----------------------------
2726 revision 1.2
2727 date: 1995/03/27 14:53:26;  author: allender;  state: Exp;
2728 *** empty log message ***
2729 ----------------------------
2730 revision 1.1
2731 date: 1995/03/09 09:32:51;  author: allender;  state: Exp;
2732 Initial revision
2733 ----------------------------
2734 revision 1.19
2735 date: 1994/10/24 13:58:12;  author: john;  state: Exp;
2736 Hacked in support for pause key onto code 0x61.
2737 ----------------------------
2738 revision 1.18
2739 date: 1994/10/21 15:17:10;  author: john;  state: Exp;
2740 Added KEY_PRINT_SCREEN
2741 ----------------------------
2742 revision 1.17
2743 date: 1994/08/31 12:22:13;  author: john;  state: Exp;
2744 Added KEY_DEBUGGED
2745 ----------------------------
2746 revision 1.16
2747 date: 1994/08/24 18:53:50;  author: john;  state: Exp;
2748 Made Cyberman read like normal mouse; added dpmi module; moved
2749 mouse from assembly to c. Made mouse buttons return time_down.
2750 ----------------------------
2751 revision 1.15
2752 date: 1994/08/18 14:56:16;  author: john;  state: Exp;
2753 *** empty log message ***
2754 ----------------------------
2755 revision 1.14
2756 date: 1994/08/08 10:43:24;  author: john;  state: Exp;
2757 Recorded when a key was pressed for key_inkey_time.
2758 ----------------------------
2759 revision 1.13
2760 date: 1994/06/17 17:17:28;  author: john;  state: Exp;
2761 Added keyd_time_last_key_was_pressed or something like that.
2762 ----------------------------
2763 revision 1.12
2764 date: 1994/04/29 12:14:19;  author: john;  state: Exp;
2765 Locked all memory used during interrupts so that program
2766 won't hang when using virtual memory.
2767 ----------------------------
2768 revision 1.11
2769 date: 1994/02/17 15:57:14;  author: john;  state: Exp;
2770 Changed key libary to C.
2771 ----------------------------
2772 revision 1.10
2773 date: 1994/01/31 08:34:09;  author: john;  state: Exp;
2774 Fixed reversed lshift/rshift keys.
2775 ----------------------------
2776 revision 1.9
2777 date: 1994/01/18 10:58:17;  author: john;  state: Exp;
2778 *** empty log message ***
2779 ----------------------------
2780 revision 1.8
2781 date: 1993/10/16 19:24:43;  author: matt;  state: Exp;
2782 Added new function key_clear_times() & key_clear_counts()
2783 ----------------------------
2784 revision 1.7
2785 date: 1993/10/15 10:17:09;  author: john;  state: Exp;
2786 added keyd_last_key_pressed and released for use with recorder.
2787 ----------------------------
2788 revision 1.6
2789 date: 1993/10/06 16:20:37;  author: john;  state: Exp;
2790 fixed down arrow bug
2791 ----------------------------
2792 revision 1.5
2793 date: 1993/10/04 13:26:42;  author: john;  state: Exp;
2794 changed the #defines for scan codes.
2795 ----------------------------
2796 revision 1.4
2797 date: 1993/09/28 11:35:20;  author: john;  state: Exp;
2798 added key_peekkey
2799 ----------------------------
2800 revision 1.3
2801 date: 1993/09/20 18:36:43;  author: john;  state: Exp;
2802 *** empty log message ***
2803 ----------------------------
2804 revision 1.1
2805 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
2806 Initial revision
2807 =============================================================================
2808 RCS file: /Buggin/miner/source/bios/key.c,v
2809 Working file: bios/key.c
2810 head: 1.11
2811 description: Functions for keyboard handler.
2812 ----------------------------
2813 revision 1.11
2814 date: 1995/07/13 15:11:25;  author: allender;  state: Exp;
2815 fixed totally bogus key_shifted array
2816 ----------------------------
2817 revision 1.10
2818 date: 1995/07/13 11:24:23;  author: allender;  state: Exp;
2819 trap checking for scancodes at 128 and not 256
2820 ----------------------------
2821 revision 1.9
2822 date: 1995/05/15 13:55:40;  author: allender;  state: Exp;
2823 change prototypes for keyboard_proc
2824 ----------------------------
2825 revision 1.8
2826 date: 1995/05/12 14:54:09;  author: allender;  state: Exp;
2827 make key_to_ascii returned unsigned char instead of char
2828 ----------------------------
2829 revision 1.7
2830 date: 1995/05/12 12:19:13;  author: allender;  state: Exp;
2831 added call to mouse handler to get button pressed during
2832 interrupt time
2833 ----------------------------
2834 revision 1.6
2835 date: 1995/05/11 13:04:44;  author: allender;  state: Exp;
2836 fixed keyboard handling.   Removed gestalt handing -- should be in
2837 macinit
2838 ----------------------------
2839 revision 1.5
2840 date: 1995/05/04 20:02:43;  author: allender;  state: Exp;
2841 still working
2842 ----------------------------
2843 revision 1.4
2844 date: 1995/04/05 13:49:48;  author: allender;  state: Exp;
2845 *** empty log message ***
2846 ----------------------------
2847 revision 1.3
2848 date: 1995/03/21 13:39:51;  author: allender;  state: Exp;
2849 *** empty log message ***
2850 ----------------------------
2851 revision 1.2
2852 date: 1995/03/21 13:28:11;  author: allender;  state: Exp;
2853 *** empty log message ***
2854 ----------------------------
2855 revision 1.1
2856 date: 1995/03/09 09:32:25;  author: allender;  state: Exp;
2857 Initial revision
2858 ----------------------------
2859 revision 1.34
2860 date: 1995/01/14 19:19:31;  author: john;  state: Exp;
2861 Made so when you press Shift+Baskspace, it release keys autmatically.
2862 ----------------------------
2863 revision 1.33
2864 date: 1994/12/13 09:21:48;  author: john;  state: Exp;
2865 Took out keyd_editor_mode, and KEY_DEBUGGED stuff for NDEBUG versions.
2866 ----------------------------
2867 revision 1.32
2868 date: 1994/11/12 13:52:01;  author: john;  state: Exp;
2869 Fixed bug with code that cleared bios buffer.
2870 ----------------------------
2871 revision 1.31
2872 date: 1994/10/24 15:16:16;  author: john;  state: Exp;
2873 Added code to detect KEY_PAUSE.
2874 ----------------------------
2875 revision 1.30
2876 date: 1994/10/24 13:57:53;  author: john;  state: Exp;
2877 Hacked in support for pause key onto code 0x61.
2878 ----------------------------
2879 revision 1.29
2880 date: 1994/10/21 15:18:13;  author: john;  state: Exp;
2881 *** empty log message ***
2882 ----------------------------
2883 revision 1.28
2884 date: 1994/10/21 15:17:24;  author: john;  state: Exp;
2885 Made LSHIFT+BACKSPACE do what PrtScr used to.
2886 ----------------------------
2887 revision 1.27
2888 date: 1994/09/22 16:09:18;  author: john;  state: Exp;
2889 Fixed some virtual memory lockdown problems with timer and
2890 joystick.
2891 ----------------------------
2892 revision 1.26
2893 date: 1994/09/15 21:32:47;  author: john;  state: Exp;
2894 Added bounds checking for down_count scancode
2895 parameter.
2896 ----------------------------
2897 revision 1.25
2898 date: 1994/08/31 12:22:20;  author: john;  state: Exp;
2899 Added KEY_DEBUGGED
2900 ----------------------------
2901 revision 1.24
2902 date: 1994/08/24 18:53:48;  author: john;  state: Exp;
2903 Made Cyberman read like normal mouse; added dpmi module; moved
2904 mouse from assembly to c. Made mouse buttons return time_down.
2905 ----------------------------
2906 revision 1.23
2907 date: 1994/08/18 15:17:51;  author: john;  state: Exp;
2908 *** empty log message ***
2909 ----------------------------
2910 revision 1.22
2911 date: 1994/08/18 15:16:38;  author: john;  state: Exp;
2912 fixed some bugs with clear_key_times and then
2913 removed it because i fixed key_flush to do the
2914 same.
2915 ----------------------------
2916 revision 1.21
2917 date: 1994/08/17 19:01:25;  author: john;  state: Exp;
2918 Attempted to fix a bug with a key being held down
2919 key_flush called, then the key released having too 
2920 long of a time.
2921 ----------------------------
2922 revision 1.20
2923 date: 1994/08/08 10:43:48;  author: john;  state: Exp;
2924 Recorded when a key was pressed for key_inkey_time.
2925 ----------------------------
2926 revision 1.19
2927 date: 1994/06/22 15:00:03;  author: john;  state: Exp;
2928 Made keyboard close automatically on exit.
2929 ----------------------------
2930 revision 1.18
2931 date: 1994/06/21 09:16:29;  author: john;  state: Exp;
2932 *** empty log message ***
2933 ----------------------------
2934 revision 1.17
2935 date: 1994/06/21 09:08:23;  author: john;  state: Exp;
2936 *** empty log message ***
2937 ----------------------------
2938 revision 1.16
2939 date: 1994/06/21 09:05:01;  author: john;  state: Exp;
2940 *** empty log message ***
2941 ----------------------------
2942 revision 1.15
2943 date: 1994/06/21 09:04:24;  author: john;  state: Exp;
2944 Made PrtScreen do an int5
2945 ----------------------------
2946 revision 1.14
2947 date: 1994/06/17 17:17:06;  author: john;  state: Exp;
2948 Added keyd_time_last_key_was_pressed or something like that.
2949 ----------------------------
2950 revision 1.13
2951 date: 1994/05/14 13:55:16;  author: matt;  state: Exp;
2952 Added #define to control key passing to bios
2953 ----------------------------
2954 revision 1.12
2955 date: 1994/05/05 18:09:39;  author: john;  state: Exp;
2956 Took out BIOS to prevent stuck keys.
2957 ----------------------------
2958 revision 1.11
2959 date: 1994/05/03 17:39:12;  author: john;  state: Exp;
2960 *** empty log message ***
2961 ----------------------------
2962 revision 1.10
2963 date: 1994/04/29 12:14:20;  author: john;  state: Exp;
2964 Locked all memory used during interrupts so that program
2965 won't hang when using virtual memory.
2966 ----------------------------
2967 revision 1.9
2968 date: 1994/04/28 23:49:41;  author: john;  state: Exp;
2969 Made key_flush flush more keys and also did something else but i forget what.
2970 ----------------------------
2971 revision 1.8
2972 date: 1994/04/22 12:52:12;  author: john;  state: Exp;
2973 *** empty log message ***
2974 ----------------------------
2975 revision 1.7
2976 date: 1994/04/01 10:44:59;  author: mike;  state: Exp;
2977 Change key_getch() to call getch() if our interrupt hasn't been installed.
2978 ----------------------------
2979 revision 1.6
2980 date: 1994/03/09 10:45:48;  author: john;  state: Exp;
2981 Neatend code a bit.
2982 ----------------------------
2983 revision 1.5
2984 date: 1994/02/17 17:24:16;  author: john;  state: Exp;
2985 Neatened up a bit.
2986 ----------------------------
2987 revision 1.4
2988 date: 1994/02/17 16:30:29;  author: john;  state: Exp;
2989 Put in code to pass keys when in debugger.
2990 ----------------------------
2991 revision 1.3
2992 date: 1994/02/17 15:57:59;  author: john;  state: Exp;
2993 Made handler not chain to BIOS handler.
2994 ----------------------------
2995 revision 1.2
2996 date: 1994/02/17 15:56:06;  author: john;  state: Exp;
2997 Initial version.
2998 ----------------------------
2999 revision 1.1
3000 date: 1994/02/17 15:54:07;  author: john;  state: Exp;
3001 Initial revision
3002 =============================================================================
3003 RCS file: /Smoke/miner/source/bios/mono.h,v
3004 Working file: bios/mono.h
3005 head: 1.1
3006 description: Header for monochrome/mprintf functions
3007 ----------------------------
3008 revision 1.1
3009 date: 1995/05/05 09:30:23;  author: allender;  state: Exp;
3010 Initial revision
3011 ----------------------------
3012 revision 1.6
3013 date: 1994/12/03 17:07:37;  author: matt;  state: Exp;
3014 Made mono code turn off with either NDEBUG or NMONO
3015 ----------------------------
3016 revision 1.5
3017 date: 1994/11/27 23:07:28;  author: matt;  state: Exp;
3018 Made changes needed to be able to compile out monochrome debugging code
3019 ----------------------------
3020 revision 1.4
3021 date: 1993/12/07 12:33:28;  author: john;  state: Exp;
3022 *** empty log message ***
3023 ----------------------------
3024 revision 1.3
3025 date: 1993/09/14 20:54:50;  author: matt;  state: Exp;
3026 Made minit() check for mono card, return -1 if present, 0 if not
3027 ----------------------------
3028 revision 1.2
3029 date: 1993/07/22 13:05:40;  author: john;  state: Exp;
3030 added macros to print variables
3031 ----------------------------
3032 revision 1.1
3033 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
3034 Initial revision
3035 =============================================================================
3036 RCS file: /BigRed/miner/source/bios/mouse.c,v
3037 Working file: bios/mouse.c
3038 head: 1.8
3039 description: Functions to access Mouse and Cyberman...
3040 ----------------------------
3041 revision 1.8
3042 date: 1996/02/21 13:57:36;  author: allender;  state: Exp;
3043 cursor device manager stuff added here so as not to
3044 rely on InterfaceLib anymore
3045 ----------------------------
3046 revision 1.7
3047 date: 1995/10/17 15:42:21;  author: allender;  state: Exp;
3048 new mouse function to determine single button press
3049 ----------------------------
3050 revision 1.6
3051 date: 1995/10/03 11:27:31;  author: allender;  state: Exp;
3052 fixed up hotspot problems with the mouse on multiple monitors
3053 ----------------------------
3054 revision 1.5
3055 date: 1995/07/13 11:27:08;  author: allender;  state: Exp;
3056 trap button checks at MAX_MOUSE_BUTTONS
3057 ----------------------------
3058 revision 1.4
3059 date: 1995/06/25 21:56:53;  author: allender;  state: Exp;
3060 added events include
3061 ----------------------------
3062 revision 1.3
3063 date: 1995/05/11 17:06:38;  author: allender;  state: Exp;
3064 fixed up mouse routines
3065 ----------------------------
3066 revision 1.2
3067 date: 1995/05/11 13:05:53;  author: allender;  state: Exp;
3068 of mouse handler code
3069 ----------------------------
3070 revision 1.1
3071 date: 1995/05/05 09:54:45;  author: allender;  state: Exp;
3072 Initial revision
3073 ----------------------------
3074 revision 1.9
3075 date: 1995/01/14 19:19:52;  author: john;  state: Exp;
3076 Fixed signed short error cmp with -1 that caused mouse
3077 to break under Watcom 10.0
3078 ----------------------------
3079 revision 1.8
3080 date: 1994/12/27 12:38:23;  author: john;  state: Exp;
3081 Made mouse use temporary dos buffer instead of
3082 allocating its own.
3083 ----------------------------
3084 revision 1.7
3085 date: 1994/12/05 23:54:53;  author: john;  state: Exp;
3086 Fixed bug with mouse_get_delta only returning positive numbers..
3087 ----------------------------
3088 revision 1.6
3089 date: 1994/11/18 23:18:18;  author: john;  state: Exp;
3090 Changed some shorts to ints.
3091 ----------------------------
3092 revision 1.5
3093 date: 1994/09/13 12:34:02;  author: john;  state: Exp;
3094 Added functions to get down count and state.
3095 ----------------------------
3096 revision 1.4
3097 date: 1994/08/29 20:52:19;  author: john;  state: Exp;
3098 Added better cyberman support; also, joystick calibration
3099 value return funcctiionn,
3100 ----------------------------
3101 revision 1.3
3102 date: 1994/08/24 18:54:32;  author: john;  state: Exp;
3103 *** empty log message ***
3104 ----------------------------
3105 revision 1.2
3106 date: 1994/08/24 18:53:46;  author: john;  state: Exp;
3107 Made Cyberman read like normal mouse; added dpmi module; moved
3108 mouse from assembly to c. Made mouse buttons return time_down.
3109 ----------------------------
3110 revision 1.1
3111 date: 1994/08/24 13:56:37;  author: john;  state: Exp;
3112 Initial revision
3113 =============================================================================
3114 RCS file: /Smoke/miner/source/bios/mouse.h,v
3115 Working file: bios/mouse.h
3116 head: 1.2
3117 description: Header for mouse functions
3118 ----------------------------
3119 revision 1.2
3120 date: 1995/10/17 11:31:57;  author: allender;  state: Exp;
3121 added new function to return mouse button state
3122 ----------------------------
3123 revision 1.1
3124 date: 1995/05/05 09:30:33;  author: allender;  state: Exp;
3125 Initial revision
3126 ----------------------------
3127 revision 1.9
3128 date: 1994/11/18 23:18:09;  author: john;  state: Exp;
3129 Changed some shorts to ints.
3130 ----------------------------
3131 revision 1.8
3132 date: 1994/09/13 12:33:49;  author: john;  state: Exp;
3133 Added functions to get down count and state.
3134 ----------------------------
3135 revision 1.7
3136 date: 1994/08/29 20:52:20;  author: john;  state: Exp;
3137 Added better cyberman support; also, joystick calibration
3138 value return funcctiionn,
3139 ----------------------------
3140 revision 1.6
3141 date: 1994/08/24 17:54:35;  author: john;  state: Exp;
3142 *** empty log message ***
3143 ----------------------------
3144 revision 1.5
3145 date: 1994/08/24 17:51:43;  author: john;  state: Exp;
3146 Added transparent cyberman support
3147 ----------------------------
3148 revision 1.4
3149 date: 1993/07/27 09:32:22;  author: john;  state: Exp;
3150 *** empty log message ***
3151 ----------------------------
3152 revision 1.3
3153 date: 1993/07/26 10:46:44;  author: john;  state: Exp;
3154 added definition for mouse_set_pos
3155 ----------------------------
3156 revision 1.2
3157 date: 1993/07/22 13:07:59;  author: john;  state: Exp;
3158 added header for mousesetlimts
3159 ----------------------------
3160 revision 1.1
3161 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
3162 Initial revision
3163 =============================================================================
3164 RCS file: /Smoke/miner/source/bios/timer.c,v
3165 Working file: bios/timer.c
3166 head: 1.7
3167 description: Functions for timers.
3168 ----------------------------
3169 revision 1.7
3170 date: 1995/09/13 08:38:08;  author: allender;  state: Exp;
3171 added control macros and put in correct support for 68k
3172 ----------------------------
3173 revision 1.6
3174 date: 1995/08/31 14:40:09;  author: allender;  state: Exp;
3175 multiply by F1_0/160 instead of dividing
3176 ----------------------------
3177 revision 1.5
3178 date: 1995/05/15 13:55:52;  author: allender;  state: Exp;
3179 change prototype for timer_proc
3180 ----------------------------
3181 revision 1.4
3182 date: 1995/05/11 13:06:07;  author: allender;  state: Exp;
3183 remove a5 references under PowerPC code
3184 ----------------------------
3185 revision 1.3
3186 date: 1995/05/04 20:03:03;  author: allender;  state: Exp;
3187 added two functions, timer_approx_seconds, and delay
3188 ----------------------------
3189 revision 1.2
3190 date: 1995/03/21 13:40:01;  author: allender;  state: Exp;
3191 *** empty log message ***
3192 ----------------------------
3193 revision 1.1
3194 date: 1995/03/21 13:31:33;  author: allender;  state: Exp;
3195 Initial revision
3196 =============================================================================
3197 RCS file: /BigRed/miner/source/cfile/cfile.c,v
3198 Working file: cfile/cfile.c
3199 head: 1.7
3200 description: Functions for accessing compressed files.
3201 ----------------------------
3202 revision 1.7
3203 date: 1995/10/27 15:18:20;  author: allender;  state: Exp;
3204 get back to descent directory before trying to read a hog file
3205 ----------------------------
3206 revision 1.6
3207 date: 1995/10/21 23:48:24;  author: allender;  state: Exp;
3208 hogfile(s) are now in :Data: folder
3209 ----------------------------
3210 revision 1.5
3211 date: 1995/08/14 09:27:31;  author: allender;  state: Exp;
3212 added byteswap header
3213 ----------------------------
3214 revision 1.4
3215 date: 1995/05/12 11:54:33;  author: allender;  state: Exp;
3216 changed memory stuff again
3217 ----------------------------
3218 revision 1.3
3219 date: 1995/05/04 20:03:38;  author: allender;  state: Exp;
3220 added code that was missing...use NewPtr instead of malloc
3221 ----------------------------
3222 revision 1.2
3223 date: 1995/04/03 09:59:49;  author: allender;  state: Exp;
3224 *** empty log message ***
3225 ----------------------------
3226 revision 1.1
3227 date: 1995/03/30 10:25:02;  author: allender;  state: Exp;
3228 Initial revision
3229 ----------------------------
3230 revision 1.24
3231 date: 1995/03/15 14:20:27;  author: john;  state: Exp;
3232 Added critical error checker.
3233 ----------------------------
3234 revision 1.23
3235 date: 1995/03/13 15:16:53;  author: john;  state: Exp;
3236 Added alternate directory stuff.
3237 ----------------------------
3238 revision 1.22
3239 date: 1995/02/09 23:08:47;  author: matt;  state: Exp;
3240 Increased the max number of files in hogfile to 250
3241 ----------------------------
3242 revision 1.21
3243 date: 1995/02/01 20:56:47;  author: john;  state: Exp;
3244 Added cfexist function
3245 ----------------------------
3246 revision 1.20
3247 date: 1995/01/21 17:53:48;  author: john;  state: Exp;
3248 Added alternate pig file thing.
3249 ----------------------------
3250 revision 1.19
3251 date: 1994/12/29 15:10:02;  author: john;  state: Exp;
3252 Increased hogfile max files to 200.
3253 ----------------------------
3254 revision 1.18
3255 date: 1994/12/12 13:20:57;  author: john;  state: Exp;
3256 Made cfile work with fiellentth.
3257 ----------------------------
3258 revision 1.17
3259 date: 1994/12/12 13:14:25;  author: john;  state: Exp;
3260 Made cfiles prefer non-hog files.
3261 ----------------------------
3262 revision 1.16
3263 date: 1994/12/09 18:53:26;  author: john;  state: Exp;
3264 *** empty log message ***
3265 ----------------------------
3266 revision 1.15
3267 date: 1994/12/09 18:52:56;  author: john;  state: Exp;
3268 Took out mem, error checking.
3269 ----------------------------
3270 revision 1.14
3271 date: 1994/12/09 18:10:31;  author: john;  state: Exp;
3272 Speed up cfgets, which was slowing down the reading of
3273 bitmaps.tbl, which was making POF loading look slow.
3274 ----------------------------
3275 revision 1.13
3276 date: 1994/12/09 17:53:51;  author: john;  state: Exp;
3277 Added error checking to number of hogfiles..
3278 ----------------------------
3279 revision 1.12
3280 date: 1994/12/08 19:02:55;  author: john;  state: Exp;
3281 Added cfgets.
3282 ----------------------------
3283 revision 1.11
3284 date: 1994/12/07 21:57:48;  author: john;  state: Exp;
3285 Took out data dir.
3286 ----------------------------
3287 revision 1.10
3288 date: 1994/12/07 21:38:02;  author: john;  state: Exp;
3289 Made cfile not return error..
3290 ----------------------------
3291 revision 1.9
3292 date: 1994/12/07 21:35:34;  author: john;  state: Exp;
3293 Made it read from data directory.
3294 ----------------------------
3295 revision 1.8
3296 date: 1994/12/07 21:33:55;  author: john;  state: Exp;
3297 Stripped out compression stuff...
3298 ----------------------------
3299 revision 1.7
3300 date: 1994/04/13 23:44:59;  author: matt;  state: Exp;
3301 When file cannot be opened, free up the buffer for that file.
3302 ----------------------------
3303 revision 1.6
3304 date: 1994/02/18 12:38:20;  author: john;  state: Exp;
3305 Optimized a bit
3306 ----------------------------
3307 revision 1.5
3308 date: 1994/02/15 18:13:20;  author: john;  state: Exp;
3309 Fixed more bugs.
3310 ----------------------------
3311 revision 1.4
3312 date: 1994/02/15 13:27:58;  author: john;  state: Exp;
3313 Works ok...
3314 ----------------------------
3315 revision 1.3
3316 date: 1994/02/15 12:51:57;  author: john;  state: Exp;
3317 Crappy inbetween version
3318 ----------------------------
3319 revision 1.2
3320 date: 1994/02/14 20:12:29;  author: john;  state: Exp;
3321 First version working with new cfile stuff.
3322 ----------------------------
3323 revision 1.1
3324 date: 1994/02/14 15:51:33;  author: john;  state: Exp;
3325 Initial revision
3326 ----------------------------
3327 revision 1.1
3328 date: 1994/02/10 15:45:12;  author: john;  state: Exp;
3329 Initial revision
3330 =============================================================================
3331 RCS file: /Buggin/miner/source/cfile/cfile.h,v
3332 Working file: cfile/cfile.h
3333 head: 1.1
3334 description: Prototypes for compressed file functions...
3335 ----------------------------
3336 revision 1.1
3337 date: 1995/03/30 10:25:08;  author: allender;  state: Exp;
3338 Initial revision
3339 ----------------------------
3340 revision 1.9
3341 date: 1995/02/01 20:56:40;  author: john;  state: Exp;
3342 Added cfexist function
3343 ----------------------------
3344 revision 1.8
3345 date: 1995/01/21 17:53:41;  author: john;  state: Exp;
3346 Added alternate pig file thing.
3347 ----------------------------
3348 revision 1.7
3349 date: 1994/12/12 13:19:47;  author: john;  state: Exp;
3350 Made cfile work with fiellentth.
3351 ----------------------------
3352 revision 1.6
3353 date: 1994/12/08 19:02:52;  author: john;  state: Exp;
3354 Added cfgets.
3355 ----------------------------
3356 revision 1.5
3357 date: 1994/12/07 21:34:07;  author: john;  state: Exp;
3358 Stripped out compression stuff...
3359 ----------------------------
3360 revision 1.4
3361 date: 1994/07/13 00:16:53;  author: matt;  state: Exp;
3362 Added include
3363 ----------------------------
3364 revision 1.3
3365 date: 1994/02/17 17:36:19;  author: john;  state: Exp;
3366 Added CF_READ_MODE and CF_WRITE_MODE constants.
3367 ----------------------------
3368 revision 1.2
3369 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
3370 Crappy inbetween version
3371 ----------------------------
3372 revision 1.1
3373 date: 1994/02/15 10:54:23;  author: john;  state: Exp;
3374 Initial revision
3375 ----------------------------
3376 revision 1.1
3377 date: 1994/02/10 15:50:54;  author: john;  state: Exp;
3378 Initial revision
3379 =============================================================================
3380 RCS file: /Smoke/miner/source/cfile/nocfile.h,v
3381 Working file: cfile/nocfile.h
3382 head: 1.1
3383 description: Prototypes to *NOT* use cfile, but use cfile calling parameters.
3384 For debugging.
3385 ----------------------------
3386 revision 1.1
3387 date: 1995/05/05 09:32:06;  author: allender;  state: Exp;
3388 Initial revision
3389 ----------------------------
3390 revision 1.4
3391 date: 1994/12/09 17:53:52;  author: john;  state: Exp;
3392 Added error checking to number of hogfiles..
3393 ----------------------------
3394 revision 1.3
3395 date: 1994/02/17 17:36:34;  author: john;  state: Exp;
3396 Added CF_READ_MODE and CF_WRITE_MODE constants.
3397 ----------------------------
3398 revision 1.2
3399 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
3400 Crappy inbetween version
3401 ----------------------------
3402 revision 1.1
3403 date: 1994/02/15 09:51:00;  author: john;  state: Exp;
3404 Initial revision
3405 =============================================================================
3406 RCS file: /Smoke/miner/source/fix/fix.c,v
3407 Working file: fix/fix.c
3408 head: 1.7
3409 description: C version of fixed point library
3410 ----------------------------
3411 revision 1.7
3412 date: 1995/09/22 14:08:16;  author: allender;  state: Exp;
3413 fixed fix_atan2 to work correctly with doubles
3414 ----------------------------
3415 revision 1.6
3416 date: 1995/08/31 15:43:49;  author: allender;  state: Exp;
3417 *** empty log message ***
3418 ----------------------------
3419 revision 1.5
3420 date: 1995/07/05 16:15:15;  author: allender;  state: Exp;
3421 make fixmuldiv use doubles for PPC implementation
3422 ----------------------------
3423 revision 1.4
3424 date: 1995/05/15 13:57:36;  author: allender;  state: Exp;
3425 make fixmuldiv compile when compiling under 68k
3426 ----------------------------
3427 revision 1.3
3428 date: 1995/05/11 13:02:59;  author: allender;  state: Exp;
3429 some routines are now in assembly
3430 ----------------------------
3431 revision 1.2
3432 date: 1995/05/04 20:04:45;  author: allender;  state: Exp;
3433 use MPW fixdiv if compiling with MPW (why did I do this?)
3434 ----------------------------
3435 revision 1.1
3436 date: 1995/04/17 11:37:54;  author: allender;  state: Exp;
3437 Initial revision
3438 ----------------------------
3439 revision 1.1
3440 date: 1995/03/08 18:55:09;  author: matt;  state: Exp;
3441 Initial revision
3442 =============================================================================
3443 RCS file: /Smoke/miner/source/fix/fix.h,v
3444 Working file: fix/fix.h
3445 head: 1.2
3446 description: FIX.H - prototypes and macros for fixed-point functions
3447 Copyright (c) 1993  Matt Toschlog & Mike Kulas
3448 ----------------------------
3449 revision 1.2
3450 date: 1995/08/31 15:44:01;  author: allender;  state: Exp;
3451 *** empty log message ***
3452 ----------------------------
3453 revision 1.1
3454 date: 1995/04/17 11:37:59;  author: allender;  state: Exp;
3455 Initial revision
3456 ----------------------------
3457 revision 1.13
3458 date: 1994/12/06 13:52:34;  author: matt;  state: Exp;
3459 Added f2ir(), which is fix-to-int with rounding
3460 ----------------------------
3461 revision 1.12
3462 date: 1994/05/18 21:45:16;  author: matt;  state: Exp;
3463 Added comments
3464 ----------------------------
3465 revision 1.11
3466 date: 1994/01/19 23:12:02;  author: matt;  state: Exp;
3467 Made fix_atan2() left-handed, like our coordinate system
3468 ----------------------------
3469 revision 1.10
3470 date: 1993/10/20 01:09:00;  author: matt;  state: Exp;
3471 Add fix_asin(), improved fix_atan2()
3472 ----------------------------
3473 revision 1.9
3474 date: 1993/10/19 23:53:46;  author: matt;  state: Exp;
3475 Added fix_atan2()
3476 ----------------------------
3477 revision 1.8
3478 date: 1993/10/19 22:22:40;  author: matt;  state: Exp;
3479 Added fix_acos()
3480 ----------------------------
3481 revision 1.7
3482 date: 1993/09/17 11:37:01;  author: mike;  state: Exp;
3483 Add capitalized versions of "some handy constants", eg:
3484 #define F1_0 f1_0
3485 ----------------------------
3486 revision 1.6
3487 date: 1993/08/24 13:00:48;  author: matt;  state: Exp;
3488 Adopted new standard, and made assembly-callable routines not trash any regs
3489 ----------------------------
3490 revision 1.5
3491 date: 1993/08/12 13:12:45;  author: matt;  state: Exp;
3492 Changed fixmul() to use SHRD instead of shl,shr,or
3493 ----------------------------
3494 revision 1.4
3495 date: 1993/08/04 19:57:18;  author: matt;  state: Exp;
3496 Added parens in fix/float conversion macros
3497 ----------------------------
3498 revision 1.3
3499 date: 1993/08/04 11:41:45;  author: matt;  state: Exp;
3500 Fixed bogus constants
3501 ----------------------------
3502 revision 1.2
3503 date: 1993/08/04 09:30:11;  author: matt;  state: Exp;
3504 Added more constants
3505 ----------------------------
3506 revision 1.1
3507 date: 1993/08/03 17:45:53;  author: matt;  state: Exp;
3508 Initial revision
3509 =============================================================================
3510 RCS file: /Smoke/miner/source/fix/tables.c,v
3511 Working file: fix/tables.c
3512 head: 1.2
3513 description: C version of fixed point library
3514 ----------------------------
3515 revision 1.2
3516 date: 1995/08/31 15:44:36;  author: allender;  state: Exp;
3517 ..
3518 ----------------------------
3519 revision 1.1
3520 date: 1995/04/17 11:38:04;  author: allender;  state: Exp;
3521 Initial revision
3522 =============================================================================
3523 RCS file: /Smoke/miner/source/iff/iff.c,v
3524 Working file: iff/iff.c
3525 head: 1.2
3526 description: Routines for reading and writing IFF files
3527 ----------------------------
3528 revision 1.2
3529 date: 1995/05/12 11:54:43;  author: allender;  state: Exp;
3530 changed memory stuff again
3531 ----------------------------
3532 revision 1.1
3533 date: 1995/05/05 08:59:41;  author: allender;  state: Exp;
3534 Initial revision
3535 ----------------------------
3536 revision 1.43
3537 date: 1994/12/08 19:03:17;  author: john;  state: Exp;
3538 Added code to use cfile.
3539 ----------------------------
3540 revision 1.42
3541 date: 1994/12/08 17:45:32;  author: john;  state: Exp;
3542 Put back in cfile stuff.
3543 ----------------------------
3544 revision 1.41
3545 date: 1994/11/19 16:41:06;  author: matt;  state: Exp;
3546 Took out unused code
3547 ----------------------------
3548 revision 1.40
3549 date: 1994/11/07 21:26:39;  author: matt;  state: Exp;
3550 Added new function iff_read_into_bitmap()
3551 ----------------------------
3552 revision 1.39
3553 date: 1994/10/27 00:12:03;  author: john;  state: Exp;
3554 Used nocfile
3555 ----------------------------
3556 revision 1.38
3557 date: 1994/08/10 19:49:58;  author: matt;  state: Exp;
3558 Fixed bitmaps in ILBM format with masking (stencil) on.
3559 ----------------------------
3560 revision 1.37
3561 date: 1994/06/02 18:53:17;  author: matt;  state: Exp;
3562 Clear flags & selector in new bitmap structure
3563 ----------------------------
3564 revision 1.36
3565 date: 1994/05/17 14:00:33;  author: matt;  state: Exp;
3566 Fixed bug with odd-width deltas & odd-length body chunks
3567 ----------------------------
3568 revision 1.35
3569 date: 1994/05/16 20:38:55;  author: matt;  state: Exp;
3570 Made anim brushes work when odd width
3571 ----------------------------
3572 revision 1.34
3573 date: 1994/05/06 19:37:26;  author: matt;  state: Exp;
3574 Improved error handling and checking
3575 ----------------------------
3576 revision 1.33
3577 date: 1994/04/27 20:57:07;  author: matt;  state: Exp;
3578 Fixed problem with RLE decompression and odd-width bitmap
3579 Added more error checking
3580 ----------------------------
3581 revision 1.32
3582 date: 1994/04/16 21:44:19;  author: matt;  state: Exp;
3583 Fixed bug introduced last version
3584 ----------------------------
3585 revision 1.31
3586 date: 1994/04/16 20:12:40;  author: matt;  state: Exp;
3587 Made masked (stenciled) bitmaps work
3588 ----------------------------
3589 revision 1.30
3590 date: 1994/04/13 23:46:16;  author: matt;  state: Exp;
3591 Added function, iff_errormsg(), which returns ptr to error message.
3592 ----------------------------
3593 revision 1.29
3594 date: 1994/04/13 23:27:25;  author: matt;  state: Exp;
3595 Put in support for anim brushes (.abm files)
3596 ----------------------------
3597 revision 1.28
3598 date: 1994/04/13 16:33:31;  author: matt;  state: Exp;
3599 Cleaned up file read code, adding fake_file structure (FFILE), which
3600 cleanly implements reading the entire file into a buffer and then reading
3601 out of that buffer.
3602 ----------------------------
3603 revision 1.27
3604 date: 1994/04/06 23:07:43;  author: matt;  state: Exp;
3605 Cleaned up code; added prototype (but no new code) for anim brush read
3606 ----------------------------
3607 revision 1.26
3608 date: 1994/03/19 02:51:52;  author: matt;  state: Exp;
3609 Really did what I said I did last revision.
3610 ----------------------------
3611 revision 1.25
3612 date: 1994/03/19 02:16:07;  author: matt;  state: Exp;
3613 Made work ILBMs which didn't have 8 planes
3614 ----------------------------
3615 revision 1.24
3616 date: 1994/03/15 14:45:26;  author: matt;  state: Exp;
3617 When error, only free memory if has been allocated
3618 ----------------------------
3619 revision 1.23
3620 date: 1994/02/18 12:39:05;  author: john;  state: Exp;
3621 Made code read from buffer.
3622 ----------------------------
3623 revision 1.22
3624 date: 1994/02/15 18:15:26;  author: john;  state: Exp;
3625 Took out cfile attempt (too slow)
3626 ----------------------------
3627 revision 1.21
3628 date: 1994/02/15 13:17:48;  author: john;  state: Exp;
3629 added assert to cfseek.
3630 ----------------------------
3631 revision 1.20
3632 date: 1994/02/15 13:13:11;  author: john;  state: Exp;
3633 Made iff code work normally.
3634 ----------------------------
3635 revision 1.19
3636 date: 1994/02/15 12:51:07;  author: john;  state: Exp;
3637 crappy inbetween version.
3638 ----------------------------
3639 revision 1.18
3640 date: 1994/02/10 18:31:32;  author: matt;  state: Exp;
3641 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
3642 ----------------------------
3643 revision 1.17
3644 date: 1994/01/24 11:51:26;  author: john;  state: Exp;
3645 Made write routine write transparency info.
3646 ----------------------------
3647 revision 1.16
3648 date: 1994/01/22 14:41:11;  author: john;  state: Exp;
3649 Fixed bug with declareations.
3650 ----------------------------
3651 revision 1.15
3652 date: 1994/01/22 14:23:00;  author: john;  state: Exp;
3653 Added global vars to check transparency
3654 ----------------------------
3655 revision 1.14
3656 date: 1993/12/08 19:00:42;  author: matt;  state: Exp;
3657 Changed while loop to memset
3658 ----------------------------
3659 revision 1.13
3660 date: 1993/12/08 17:23:51;  author: mike;  state: Exp;
3661 Speedup by converting while...getc to fread.
3662 ----------------------------
3663 revision 1.12
3664 date: 1993/12/08 12:37:35;  author: mike;  state: Exp;
3665 Optimize parse_body.
3666 ----------------------------
3667 revision 1.11
3668 date: 1993/12/05 17:30:14;  author: matt;  state: Exp;
3669 Made bitmaps with width <= 64 not compress
3670 ----------------------------
3671 revision 1.10
3672 date: 1993/12/03 12:24:51;  author: matt;  state: Exp;
3673 Fixed TINY chunk when bitmap was part of a larger bitmap
3674 ----------------------------
3675 revision 1.9
3676 date: 1993/11/22 17:26:43;  author: matt;  state: Exp;
3677 iff write now writes out a tiny chunk
3678 ----------------------------
3679 revision 1.8
3680 date: 1993/11/21 22:04:13;  author: matt;  state: Exp;
3681 Fixed error with non-compressed bitmaps
3682 Added Yuan's code to free raw data if we get an error parsing the body
3683 ----------------------------
3684 revision 1.7
3685 date: 1993/11/11 12:12:12;  author: yuan;  state: Exp;
3686 Changed mallocs to MALLOCs.
3687 ----------------------------
3688 revision 1.6
3689 date: 1993/11/01 19:02:23;  author: matt;  state: Exp;
3690 Fixed a couple bugs in rle compression
3691 ----------------------------
3692 revision 1.5
3693 date: 1993/10/27 12:47:39;  author: john;  state: Exp;
3694 *** empty log message ***
3695 ----------------------------
3696 revision 1.4
3697 date: 1993/10/27 12:37:31;  author: yuan;  state: Exp;
3698 Added mem.h
3699 ----------------------------
3700 revision 1.3
3701 date: 1993/09/22 19:16:57;  author: matt;  state: Exp;
3702 Added new error type, IFF_CORRUPT, for internally bad IFF files.
3703 ----------------------------
3704 revision 1.2
3705 date: 1993/09/08 19:24:16;  author: matt;  state: Exp;
3706 Fixed bug in RLE compression
3707 Changed a bunch of unimportant values like aspect and page size when writing
3708 Added new error condition, IFF_BAD_BM_TYPE
3709 Make sub-bitmaps work correctly
3710 Added compile flag to turn compression off (COMPRESS)
3711 ----------------------------
3712 revision 1.1
3713 date: 1993/09/08 14:24:15;  author: matt;  state: Exp;
3714 Initial revision
3715 =============================================================================
3716 RCS file: /Smoke/miner/source/iff/iff.h,v
3717 Working file: iff/iff.h
3718 head: 1.2
3719 description: Header for IFF routines
3720 ----------------------------
3721 revision 1.2
3722 date: 1995/05/05 16:33:22;  author: allender;  state: Exp;
3723 changed types.h to dtypes.h
3724 ----------------------------
3725 revision 1.1
3726 date: 1995/05/05 08:59:45;  author: allender;  state: Exp;
3727 Initial revision
3728 ----------------------------
3729 revision 1.12
3730 date: 1994/11/07 21:26:53;  author: matt;  state: Exp;
3731 Added new function iff_read_into_bitmap()
3732 ----------------------------
3733 revision 1.11
3734 date: 1994/05/06 19:37:38;  author: matt;  state: Exp;
3735 Improved error handling and checking
3736 ----------------------------
3737 revision 1.10
3738 date: 1994/04/16 20:12:54;  author: matt;  state: Exp;
3739 Made masked (stenciled) bitmaps work
3740 ----------------------------
3741 revision 1.9
3742 date: 1994/04/13 23:46:00;  author: matt;  state: Exp;
3743 Added function, iff_errormsg(), which returns ptr to error message.
3744 ----------------------------
3745 revision 1.8
3746 date: 1994/04/13 23:27:10;  author: matt;  state: Exp;
3747 Put in support for anim brushes (.abm files)
3748 ----------------------------
3749 revision 1.7
3750 date: 1994/04/06 23:08:02;  author: matt;  state: Exp;
3751 Cleaned up code; added prototype (but no new code) for anim brush read
3752 ----------------------------
3753 revision 1.6
3754 date: 1994/01/22 14:40:59;  author: john;  state: Exp;
3755 Fixed bug with declareations.
3756 ----------------------------
3757 revision 1.5
3758 date: 1994/01/22 14:23:13;  author: john;  state: Exp;
3759 Added global vars to check transparency
3760 ----------------------------
3761 revision 1.4
3762 date: 1993/10/27 12:47:42;  author: john;  state: Exp;
3763 Extended the comments
3764 ----------------------------
3765 revision 1.3
3766 date: 1993/09/22 19:17:20;  author: matt;  state: Exp;
3767 Fixed handling of pad byte in ILBM/PPB body - was writing pad byte to
3768 destination buffer.
3769 ----------------------------
3770 revision 1.2
3771 date: 1993/09/08 19:23:25;  author: matt;  state: Exp;
3772 Added additional return code, IFF_BAD_BM_TYPE
3773 ----------------------------
3774 revision 1.1
3775 date: 1993/09/08 14:24:21;  author: matt;  state: Exp;
3776 Initial revision
3777 =============================================================================
3778 RCS file: f:/miner/source/includes/types.h,v
3779 Working file: includes/types.h
3780 head: 1.2
3781 description: Common types for use in Miner
3782 ----------------------------
3783 revision 1.2
3784 date: 1993/09/14 12:12:30;  author: matt;  state: Exp;
3785 Added #define for NULL
3786 ----------------------------
3787 revision 1.1
3788 date: 1993/08/24 12:50:40;  author: matt;  state: Exp;
3789 Initial revision
3790 =============================================================================
3791 RCS file: /Smoke/miner/source/macsys/backgrnd.c,v
3792 Working file: macsys/backgrnd.c
3793 head: 1.1
3794 description: Routines to deal with blacking out the background
3795 ----------------------------
3796 revision 1.1
3797 date: 1995/04/07 13:18:00;  author: allender;  state: Exp;
3798 Initial revision
3799 =============================================================================
3800 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3801 Working file: macsys/macinit.c
3802 head: 1.21
3803 description: $Log: not supported by cvs2svn $
3804 ----------------------------
3805 revision 1.21
3806 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3807 cd checking only on registered version
3808 ----------------------------
3809 revision 1.20
3810 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
3811 #ifdef RELEASE for cd checking
3812 ----------------------------
3813 revision 1.19
3814 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
3815 added stuff to check for Descent CD at startup
3816 ----------------------------
3817 revision 1.18
3818 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
3819 do screen saver stuff
3820 ----------------------------
3821 revision 1.17
3822 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
3823 low sounds and textures in virtual memory
3824 ----------------------------
3825 revision 1.16
3826 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
3827 new memory stuff (only two possibilities), and fucking
3828 correct checking of VM active
3829 ----------------------------
3830 revision 1.15
3831 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
3832 call process_initial_events 4 times since I don't loop
3833 there anymore
3834 ----------------------------
3835 revision 1.14
3836 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
3837 tried hiding control strip on startup.  Code is commented
3838 out because functions don't appear to exist anywhere
3839 ----------------------------
3840 revision 1.13
3841 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
3842 removed a couple of functions that shouldn't be called here
3843 ----------------------------
3844 revision 1.12
3845 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
3846 chedck to be sure GDevice is valid before performing close
3847 operations (fixing up bbp and restoring clut)
3848 ----------------------------
3849 revision 1.11
3850 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
3851 correctly restore device bitplane when done
3852 ----------------------------
3853 revision 1.10
3854 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
3855 added memory stuff.  Descent should run in 5.5 w/VM on PPC
3856 now.
3857 ----------------------------
3858 revision 1.9
3859 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
3860 more memory stuff.  Put in mymkdir and mychdir functions
3861 to account for some compilers not implementing the
3862 normal functions
3863 ----------------------------
3864 revision 1.8
3865 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
3866 determine in VM is on during init
3867 ----------------------------
3868 revision 1.7
3869 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
3870 changed initialization code
3871 ----------------------------
3872 revision 1.6
3873 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
3874 first attempt to change pixel depth of device
3875 ----------------------------
3876 revision 1.5
3877 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
3878 overhauled screen manipulation stuff
3879 ----------------------------
3880 revision 1.4
3881 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
3882 ifdef'ed qd global
3883 ----------------------------
3884 revision 1.3
3885 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
3886 make define for stack size and change error message
3887 ----------------------------
3888 revision 1.2
3889 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
3890 stack and heap handling -- needs work
3891 ----------------------------
3892 revision 1.1
3893 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
3894 Initial revision
3895 =============================================================================
3896 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3897 Working file: macsys/macinit.c
3898 head: 1.21
3899 description: $Log: not supported by cvs2svn $
3900 ----------------------------
3901 revision 1.21
3902 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3903 cd checking only on registered version
3904 ----------------------------
3905 revision 1.20
3906 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
3907 #ifdef RELEASE for cd checking
3908 ----------------------------
3909 revision 1.19
3910 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
3911 added stuff to check for Descent CD at startup
3912 ----------------------------
3913 revision 1.18
3914 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
3915 do screen saver stuff
3916 ----------------------------
3917 revision 1.17
3918 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
3919 low sounds and textures in virtual memory
3920 ----------------------------
3921 revision 1.16
3922 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
3923 new memory stuff (only two possibilities), and fucking
3924 correct checking of VM active
3925 ----------------------------
3926 revision 1.15
3927 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
3928 call process_initial_events 4 times since I don't loop
3929 there anymore
3930 ----------------------------
3931 revision 1.14
3932 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
3933 tried hiding control strip on startup.  Code is commented
3934 out because functions don't appear to exist anywhere
3935 ----------------------------
3936 revision 1.13
3937 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
3938 removed a couple of functions that shouldn't be called here
3939 ----------------------------
3940 revision 1.12
3941 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
3942 chedck to be sure GDevice is valid before performing close
3943 operations (fixing up bbp and restoring clut)
3944 ----------------------------
3945 revision 1.11
3946 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
3947 correctly restore device bitplane when done
3948 ----------------------------
3949 revision 1.10
3950 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
3951 added memory stuff.  Descent should run in 5.5 w/VM on PPC
3952 now.
3953 ----------------------------
3954 revision 1.9
3955 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
3956 more memory stuff.  Put in mymkdir and mychdir functions
3957 to account for some compilers not implementing the
3958 normal functions
3959 ----------------------------
3960 revision 1.8
3961 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
3962 determine in VM is on during init
3963 ----------------------------
3964 revision 1.7
3965 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
3966 changed initialization code
3967 ----------------------------
3968 revision 1.6
3969 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
3970 first attempt to change pixel depth of device
3971 ----------------------------
3972 revision 1.5
3973 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
3974 overhauled screen manipulation stuff
3975 ----------------------------
3976 revision 1.4
3977 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
3978 ifdef'ed qd global
3979 ----------------------------
3980 revision 1.3
3981 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
3982 make define for stack size and change error message
3983 ----------------------------
3984 revision 1.2
3985 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
3986 stack and heap handling -- needs work
3987 ----------------------------
3988 revision 1.1
3989 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
3990 Initial revision
3991 =============================================================================
3992 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3993 Working file: macsys/macinit.c
3994 head: 1.21
3995 description: $Log: not supported by cvs2svn $
3996 ----------------------------
3997 revision 1.21
3998 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3999 cd checking only on registered version
4000 ----------------------------
4001 revision 1.20
4002 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
4003 #ifdef RELEASE for cd checking
4004 ----------------------------
4005 revision 1.19
4006 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
4007 added stuff to check for Descent CD at startup
4008 ----------------------------
4009 revision 1.18
4010 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
4011 do screen saver stuff
4012 ----------------------------
4013 revision 1.17
4014 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
4015 low sounds and textures in virtual memory
4016 ----------------------------
4017 revision 1.16
4018 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
4019 new memory stuff (only two possibilities), and fucking
4020 correct checking of VM active
4021 ----------------------------
4022 revision 1.15
4023 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
4024 call process_initial_events 4 times since I don't loop
4025 there anymore
4026 ----------------------------
4027 revision 1.14
4028 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
4029 tried hiding control strip on startup.  Code is commented
4030 out because functions don't appear to exist anywhere
4031 ----------------------------
4032 revision 1.13
4033 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
4034 removed a couple of functions that shouldn't be called here
4035 ----------------------------
4036 revision 1.12
4037 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
4038 chedck to be sure GDevice is valid before performing close
4039 operations (fixing up bbp and restoring clut)
4040 ----------------------------
4041 revision 1.11
4042 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
4043 correctly restore device bitplane when done
4044 ----------------------------
4045 revision 1.10
4046 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
4047 added memory stuff.  Descent should run in 5.5 w/VM on PPC
4048 now.
4049 ----------------------------
4050 revision 1.9
4051 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
4052 more memory stuff.  Put in mymkdir and mychdir functions
4053 to account for some compilers not implementing the
4054 normal functions
4055 ----------------------------
4056 revision 1.8
4057 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
4058 determine in VM is on during init
4059 ----------------------------
4060 revision 1.7
4061 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
4062 changed initialization code
4063 ----------------------------
4064 revision 1.6
4065 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
4066 first attempt to change pixel depth of device
4067 ----------------------------
4068 revision 1.5
4069 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
4070 overhauled screen manipulation stuff
4071 ----------------------------
4072 revision 1.4
4073 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
4074 ifdef'ed qd global
4075 ----------------------------
4076 revision 1.3
4077 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
4078 make define for stack size and change error message
4079 ----------------------------
4080 revision 1.2
4081 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
4082 stack and heap handling -- needs work
4083 ----------------------------
4084 revision 1.1
4085 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
4086 Initial revision
4087 =============================================================================
4088 RCS file: /Smoke/miner/source/macsys/macsys.h,v
4089 Working file: macsys/macsys.h
4090 head: 1.16
4091 description: $Log: not supported by cvs2svn $
4092 ----------------------------
4093 revision 1.16
4094 date: 1995/10/25 09:19:11;  author: allender;  state: Exp;
4095 end file with newline to get rid of warnings on compile
4096 ----------------------------
4097 revision 1.15
4098 date: 1995/10/23 10:46:06;  author: allender;  state: Exp;
4099 removed drv_num from GetDiskInserted
4100 ----------------------------
4101 revision 1.14
4102 date: 1995/10/23 09:41:27;  author: allender;  state: Exp;
4103 changed param to GetDiskInserted to be drv_num
4104 ----------------------------
4105 revision 1.13
4106 date: 1995/10/11 13:57:42;  author: allender;  state: Exp;
4107 added prototype for GetDiskInserted
4108 ----------------------------
4109 revision 1.12
4110 date: 1995/09/24 11:00:11;  author: allender;  state: Exp;
4111 extern do_appl_quit function
4112 ----------------------------
4113 revision 1.11
4114 date: 1995/09/19 10:38:02;  author: allender;  state: Exp;
4115 start of compatibility stuff...added function prototype
4116 ----------------------------
4117 revision 1.10
4118 date: 1995/09/18 09:16:18;  author: allender;  state: Exp;
4119 added Compatibility_mode variable
4120 ----------------------------
4121 revision 1.9
4122 date: 1995/09/15 13:43:32;  author: allender;  state: Exp;
4123 changed parameter to SavePictScreen
4124 ----------------------------
4125 revision 1.8
4126 date: 1995/09/13 08:41:52;  author: allender;  state: Exp;
4127 added two variable to control memory usage
4128 ----------------------------
4129 revision 1.7
4130 date: 1995/09/05 08:48:15;  author: allender;  state: Exp;
4131 added prefs header stuff
4132 ----------------------------
4133 revision 1.6
4134 date: 1995/09/01 14:14:28;  author: allender;  state: Exp;
4135 have_virtual_memory global variable added
4136 ----------------------------
4137 revision 1.5
4138 date: 1995/08/31 15:46:03;  author: allender;  state: Exp;
4139 new headers and stuff
4140 ----------------------------
4141 revision 1.4
4142 date: 1995/07/10 20:39:59;  author: allender;  state: Exp;
4143 added save_bbp as extern
4144 ----------------------------
4145 revision 1.3
4146 date: 1995/06/13 10:22:37;  author: allender;  state: Exp;
4147 overhauled screen manipulation stuff
4148 ----------------------------
4149 revision 1.2
4150 date: 1995/06/13 09:08:29;  author: allender;  state: Exp;
4151 changed window init code -- now called from gr_init
4152 ----------------------------
4153 revision 1.1
4154 date: 1995/04/07 13:19:04;  author: allender;  state: Exp;
4155 Initial revision
4156 =============================================================================
4157 RCS file: /BigRed/miner/source/macsys/macwin.c,v
4158 Working file: macsys/macwin.c
4159 head: 1.30
4160 description: $Log: not supported by cvs2svn $
4161 ----------------------------
4162 revision 1.30
4163 date: 1995/11/02 14:13:09;  author: allender;  state: Exp;
4164 cd checking only on registered version
4165 ----------------------------
4166 revision 1.29
4167 date: 1995/10/28 22:51:24;  author: allender;  state: Exp;
4168 #ifdef RELEASE for CD checking and call do_appl_quit1 so
4169 we don't do silly restore/save of monitor background
4170 ----------------------------
4171 revision 1.28<