www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/01/10:59:16

Date: Sat, 1 May 1993 17:32:23 +0200
Conversion: Prohibited
From: <phc27 AT rz DOT uni-kiel DOT dbp DOT de>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: BCC2GRX patch 2

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019