Mail Archives: djgpp/1993/05/01/10:59:16
Hi,
Wonkoo's problem with the BCC2GRX seems to be solved.
Beside the __gr_set_up_mode patch I published earlier on this line,
you should also replace the detectgraph() and initgraph() routines
in bccgrx.c by the following new ones :
Here are the changed parts form src/bccgrx.c :
/* ----------------------------------------------------------------- */
void detectgraph(int *graphdriver,int *graphmode)
{
if (GrCurrentMode() < GR_320_200_graphics)
*graphdriver = GR_VGA;
else {
__gr_set_up_modes();
*graphdriver = GrAdapterType();
if (*graphdriver == GR_S3)
*graphdriver = GR_VGA;
}
*graphmode = 0; /* Default graphics mode */
}
/* ----------------------------------------------------------------- */
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver)
{
ERR = grOk;
detectgraph(graphdriver, graphmode); /* Assume detect */
setgraphmode(*graphmode); /* graphdriver may be invalid */
detectgraph(graphdriver, graphmode); /* but will be ok now ... */
strcpy( __gr_BGICHR, pathtodriver);
}
If there are any problems left with the BCC2GRX, please tell me about.
Hartmut
- Raw text -