/* Copyright (C) 1998 BJ Eirich (aka vecna) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Lic See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include char fname1[100], fname2[100]; int xs, ys, ns; FILE *fnt,*pcxf; char *virscr; char manufacturer; // pcx header char version; char encoding; char bits_per_pixel; short int xmin,ymin; short int xmax,ymax; short int hres; short int vres; char palette[48]; char reserved; char color_planes; short int bytes_per_line; short int palette_type; char filler[58]; unsigned char pal[768]; unsigned short int width,depth; unsigned short int bytes; unsigned char c, run, ss=0; unsigned int vidoffset, n=0; void ReadPCXLine(unsigned char *dest) { int j; n=0; do { c=fgetc(pcxf) & 0xff; if ((c & 0xc0)==0xc0) { run=c & 0x3f; c=fgetc(pcxf); for (j=0; j