This commit is contained in:
Vince Weaver 2004-11-08 21:20:00 -05:00
parent ec2cc95918
commit de8a2e1a48
3 changed files with 13 additions and 12 deletions

View File

@ -26,9 +26,9 @@ SDL_INCLUDE= `sdl-config --cflags`
#
# Uncomment the following for ncurses
#
CURSES_TARGET= curses_svmwgraph.o
CURSES_FLAGS= -DCURSES_TARGET=1
CURSES_LIBS= -lncurses
#CURSES_TARGET= curses_svmwgraph.o
#CURSES_FLAGS= -DCURSES_TARGET=1
#CURSES_LIBS= -lncurses
#
# On machines w/ curses instead of ncurses [i.e. solaris, Irix, etc]
@ -42,9 +42,9 @@ CURSES_LIBS= -lncurses
#
# Uncomment the following for opengGL
#
OPENGL_TARGET= opengl_svmwgraph.o
OPENGL_FLAGS=-DOPENGL_TARGET
OPENGL_LIBS= -L/usr/X11R6/lib -lX11 -lICE -lXmu -lGL -lGLU
#OPENGL_TARGET= opengl_svmwgraph.o
#OPENGL_FLAGS=-DOPENGL_TARGET
#OPENGL_LIBS= -L/usr/X11R6/lib -lX11 -lICE -lXmu -lGL -lGLU
##############################

View File

@ -167,9 +167,9 @@ int vmwLoadPCX(int x1,int y1,vmwVisual *target,
x++;
}
/* why is this needed? */
if (x%xsize==0) {
pointer++;
}
// if (x%xsize==0) {
// pointer++;
// }
//printf("WARNING! X=%i\n",x);
// x=0;

View File

@ -45,7 +45,7 @@ int main(int argc,char **argv)
while( ( temp_string2=strtok(NULL,"."))!=NULL)
extension=temp_string2;
if (!strncmp(extension,"pcx",4)) {
// if (!strncmp(extension,"pcx",4)) {
vmwGetPCXInfo(argv[whichfile],&xsize,&ysize,&type);
if (type!=PCX_8BITPAL) {
printf("Unsupported PCX type! Must be 256 colors!\n");
@ -56,7 +56,8 @@ int main(int argc,char **argv)
argv[whichfile],xsize,ysize);
is_pcx=1;
}
// }
#if 0
else { /* We assume paintpro file */
ppro_header=vmwGetPaintProHeader(argv[whichfile]);
printf("\nLoading file: %s\n",argv[whichfile]);
@ -82,7 +83,7 @@ int main(int argc,char **argv)
xsize=ppro_header->xsize;
ysize=ppro_header->ysize;
}
#endif
/* Setup Graphics */
if ( (graph_state=vmwSetupSVMWGraph(target,