![]() ![]() |
|||||||
|
X Port NotesOne of the goals of the X port was to eliminate all dependencies on 8086 code and VGA graphics. This involved several modifications to the id source, and the addition of a few new files.Modified FilesTBDNew Filessingon.dat
This is the sigon screen image, extracted from signon.obj. id
supplied this as signon.obj, a DOS object file linked with the
executable. It defines the symbol Obviously, a DOS object file is not much use in a Unix environment, so I extracted the 64k data from the object with a small C program written with Borland C.
The signon data is read in in the function colors.c
This is the main game color palette. In the id source this was supplied
as a DOS object file gamepal.obj. The file defines the 768 byte array
colors.cProvides routines for setting up and modifying color tables. graphics.cDrawing routines. Uses Xlib. xmain.cX initialisation and event handling. missing.cSome small routines not in libc. timer.cSimulates the TimeCount variable which in the original code is incremented 70 times a second in the sound driver id_sd_a.asm. Here we use gettimeofday to get the system time and convert that to a 1/70s tick.
|