diff SMS.orig/Common.h SMS/Common.h 46c46,47 < register byte I,M,J,K,*P,*T,*R,*C,*Z; --- > register byte I,M,J,K,*T,*C; > PIXEL *R, *P, *Z; 119c120,121 < register byte X,Y,K,*P,*C,*Z,Shift; --- > register byte X,Y,K,*C,Shift; > PIXEL *P, *Z; 140c142,143 < P=XBuf+L;Z=ZBuf+(L>>3); --- > P=XBuf+L; > Z=ZBuf+(L>>3); 176c179,180 < register byte *P,J; --- > register byte J; > PIXEL *P; Common subdirectories: SMS.orig/MSDOS and SMS/MSDOS diff SMS.orig/Makefile SMS/Makefile 38,39c38,39 < DEFINES = -DUNIX -DLSB_FIRST -DDEBUG -DMITSHM -DSOUND < CFLAGS = -O2 -I/usr/X11R6/include -L/usr/X11R6/lib ${DEFINES} --- > DEFINES = -LINUX -DLSB_FIRST -DDEBUG -DMITSHM -DSOUND -DDIRECTCOLOR > CFLAGS = -O2 -I/usr/X11R6/include -L/usr/X11R6/lib ${DEFINES} -O3 -fomit-frame-pointer -funroll-loops diff SMS.orig/SMS.h SMS/SMS.h 20a21,33 > #ifdef TRUECOLOR > #define PIXEL unsigned long > #define DEPTH 24 > #else > #ifdef DIRECTCOLOR > #define PIXEL unsigned short > #define DEPTH 16 > #else > #define PIXEL byte > #define DEPTH 8 > #endif > #endif > diff SMS.orig/Unix.c SMS/Unix.c 57c57 < char *Title="MasterGear Unix/X 0.7"; --- > char *Title="MasterGear Unix/X 0.7 ibs"; 61,62c61,62 < byte *XBuf,*ZBuf; < byte Pal[64],XPal[16],SPal[16]; --- > PIXEL *XBuf,*ZBuf; > PIXEL Pal[64],XPal[16],SPal[16]; 86c86 < byte *P; --- > PIXEL *P; 178c178,179 < if(!(ZBuf=malloc(WIDTH*HEIGHT/8))) return(0); --- > /* IAN Insert a factor of 2 here? */ > if(!(ZBuf=malloc(WIDTH*HEIGHT/4))) return(0); 186c187,188 < (Dsp,DefaultVisualOfScreen(Scr),8,ZPixmap,NULL,&SHMInfo,WIDTH,HEIGHT); --- > (Dsp,DefaultVisualOfScreen(Scr), > DEPTH,ZPixmap,NULL,&SHMInfo,WIDTH,HEIGHT); 195c197,198 < XBuf=(byte *)(Img->data=SHMInfo.shmaddr=shmat(SHMInfo.shmid,0,0)); --- > XBuf=(PIXEL *)(Img->data= > SHMInfo.shmaddr=shmat(SHMInfo.shmid,0,0)); 207c210 < XBuf=(byte *)malloc(sizeof(byte)*HEIGHT*WIDTH); --- > XBuf=(PIXEL *)malloc(sizeof(PIXEL)*HEIGHT*WIDTH); 213c216,217 < (Dsp,DefaultVisualOfScreen(Scr),8,ZPixmap,0,XBuf,WIDTH,HEIGHT,8,0); --- > (Dsp,DefaultVisualOfScreen(Scr),DEPTH,ZPixmap,0,XBuf, > WIDTH,HEIGHT,sizeof(PIXEL)*8,0);