| 1 |
/* trap.c -- generate output for the trap test. See comments in |
| 2 |
lib/texmf.c for what each routine does. */ |
| 3 |
|
| 4 |
#define EXTERN extern |
| 5 |
#include "../mfd.h" |
| 6 |
|
| 7 |
|
| 8 |
/* No #ifdef for the whole file, because we always want to support this. */ |
| 9 |
|
| 10 |
#include <mfdisplay.h> |
| 11 |
|
| 12 |
/* This returns true if we can do window operations, else false. */ |
| 13 |
|
| 14 |
int |
| 15 |
mf_trap_initscreen(void) |
| 16 |
{ |
| 17 |
return 1; |
| 18 |
} |
| 19 |
|
| 20 |
void |
| 21 |
mf_trap_updatescreen(void) |
| 22 |
{ |
| 23 |
fputs ("Calling UPDATESCREEN\n", logfile); |
| 24 |
} |
| 25 |
|
| 26 |
void |
| 27 |
mf_trap_blankrectangle(screencol left, |
| 28 |
screencol right, |
| 29 |
screenrow top, |
| 30 |
screenrow bottom) |
| 31 |
{ |
| 32 |
fprintf (logfile, "\nCalling BLANKRECTANGLE(%ld,%ld,%ld,%ld)\n", |
| 33 |
(long)left, (long)right, (long)top, (long)bottom); |
| 34 |
} |
| 35 |
|
| 36 |
void |
| 37 |
mf_trap_paintrow(screenrow row, |
| 38 |
pixelcolor init_color, |
| 39 |
transspec transition_vector, |
| 40 |
screencol vector_size) |
| 41 |
{ |
| 42 |
unsigned k; |
| 43 |
|
| 44 |
fprintf (logfile, "Calling PAINTROW(%ld,%ld;", (long)row, (long)init_color); |
| 45 |
for (k = 0; k <= vector_size; k++) { |
| 46 |
fprintf (logfile, "%ld", (long)transition_vector[k]); |
| 47 |
if (k != vector_size) |
| 48 |
putc (',', logfile); |
| 49 |
} |
| 50 |
fputs (")\n", logfile); |
| 51 |
} |