Back to index

tetex-bin  3.0
trap.c
Go to the documentation of this file.
00001 /* trap.c -- generate output for the trap test.  See comments in
00002    lib/texmf.c for what each routine does.  */
00003 
00004 #define EXTERN extern
00005 #include "../mfd.h"
00006 
00007 
00008 /* No #ifdef for the whole file, because we always want to support this.  */
00009 
00010 
00011 /* This returns true if we can do window operations, else false.  */
00012 
00013 boolean
00014 mf_trap_initscreen P1H(void)
00015 {
00016   return 1;
00017 }
00018 
00019 void
00020 mf_trap_updatescreen P1H(void)
00021 {
00022   fputs ("Calling UPDATESCREEN\n", logfile);
00023 }
00024 
00025 void
00026 mf_trap_blankrectangle P4C(screencol, left,
00027                            screencol, right,
00028                            screenrow, top,
00029                            screenrow, bottom)
00030 {
00031   fprintf (logfile, "\nCalling BLANKRECTANGLE(%ld,%ld,%ld,%ld)\n",
00032            (long)left, (long)right, (long)top, (long)bottom);
00033 }
00034 
00035 void
00036 mf_trap_paintrow P4C(screenrow, row,
00037                      pixelcolor, init_color,
00038                      transspec, transition_vector,
00039                      screencol, vector_size)
00040 {
00041   unsigned k;
00042 
00043   fprintf (logfile, "Calling PAINTROW(%ld,%ld;", (long)row, (long)init_color);
00044   for (k = 0; k <= vector_size; k++) {
00045     fprintf (logfile, "%ld", (long)transition_vector[k]);
00046     if (k != vector_size)
00047       putc (',', logfile);
00048     }
00049   fputs (")\n", logfile);
00050 }