Date: Sat, 8 May 1993 17:18:04 +0200 Conversion: Prohibited From: To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: BCC2GRX initgraph()/closegraph() Hi, Wonkoo is right, I missed the __gr_INIT = FALSE in closegraph. You should replace the following two functions in bcc2grx/include/bccgrx.h : /* ----------------------------------------------------------------- */ __INL__ void closegraph(void) { GrSetMode(GR_default_text); __gr_INIT = FALSE; } /* ----------------------------------------------------------------- */ __INL__ int getgraphmode(void) { return (__gr_INIT ? __gr_Mode : (__gr_Result=grNoInitGraph)); } Since closegraph() doesn't free any memory allocated for vector fonts, you can't switch to a second (different) set of fonts. Every font will be loaded once and stay in (virtual) memory until the program terminates. If this behaviour doesn't work with your program (eg. something like a font editor) please tell me about. I changed the initgraph() stepping from 1.0 to 1.1 and didn't noticed the change in src/changes. So here it is : - initgraph() will set the requested graphmode if graphdriver != DETECT. Hartmut