Mail Archives: djgpp/1993/10/07/20:31:52
/*
The Problem:
While upgrading my version of GCC from /pub/msdos/djgpp on
omnigate.clarkson.edu. I ran into a problem with graphics
applications. The short program below reproduces the problem. It
compiles and works fine with the old GCC/GO32 release I was using, and
compiles but does not switch to graphics mode when used with the new
release. I think that the problem is in go32.exe as the program
works when the go32x.exe VESA DOS extender (hacked go32 1.09) from
gmvsa001.zip is used in place of go32.exe (using either tseng4k or
vesa drivers). Has anyone else experienced this problem?
Hardware:
Gateway 2000 - 486 DX/33MHZ - 4MB RAM, Crystal Scan 1024NI
monitor, Diamond SpeedStar SVGA card w/ 1MB ram.
Old release:
gcc - version 2.1
go32 - version 1.06
gas - version 1.38
New release:
gcc - version 2.4.1
go32 - version 1.10
gas - version 2.11
Environment:
EANSI.SYS loaded
GO32=ansi driver c:/gnu/drivers/tseng4k.grd gw 1024 gh 768 2r1
COMPILER_PATH=c:/gnu/bin
C_INCLUDE_PATH=c:/gnu/include
CPLUS_INCLUDE_PATH=c:/gnu/cplusinc:c:/gnu/include
OBJC_INCLUDE_PATH=c:/gnu/include
OBJCPLUS_INCLUDE_PATH=c:/gnu/include
LIBRARY_PATH=c:/gnu/lib
GO32TMP=c:/tmp
Sincerely,
Andy Pineda
<pineda AT ronis DOT chem DOT McGill DOT CA>
*/
#include <stdio.h>
#include <std.h>
#include <graphics.h>
#include <mouse.h>
main(argc,argv)
int argc;
char **argv;
{
printf("Foobar>\n");
sleep(3);
GrSetMode(GR_default_graphics);
GrLine(0,0,GrMaxX(),GrMaxY(),5);
GrLine(0,GrMaxY(),GrMaxX(),0,5);
sleep(3);
GrSetMode(GR_default_text);
}
- Raw text -