Mail Archives: djgpp/1995/11/03/12:47:17
On Thu, 2 Nov 1995 Broeker AT physik DOT rwth-aachen DOT de wrote:
> In comp.os.msdos.djgpp you write:
>
> >On Mon, 30 Oct 1995, Hartmut Schirmer wrote:
>
> So where's the problem? Does it really make you any problems to change
> the source code given above to somthing like this:
>
> #ifdef __GNUC__
> gd = _SOME_BCC2GRX_COMPATIBLE_GD_
> gm = _SOME_BCC2GRX_COMPATIBLE_GD_
> set_BGI_mode_whc(&gd, &gm, XRES, YRES, NC);
> #else
> gd = _YOUR_OLD_GD_SETUP_;
> gm = _THE_OLD_MODE_SELECTION_;
> #endif
But there is no BCC2GRX_COMPATIBLE_MODE... Or maybe I don't understand
what you were sayin. How would I set up for a VESA compatible
640x480x256 using BXX2GRX??
> (If I'm not totally mistaken, this would give you a gd/gm pair usable
> to initgraph() to your desired resolution, independent of the compiler
> being used. Any corrections on this?)
>
> Remember: there's no real use for a distinction between things like
> TRIDENT256 and VESA256 when you're using BCC2GRX, as this is configured
> already by using the GO32 (or GRXDRV for 2.0) env. variable. So why
> bother implementing it at all? All the functionality is there, you just
> have to change 2 original lines of code, getting 8 (complete with all
> the #ifdef'ing). I don't think that's too high a price.
>
I may have missed something somewhere. What's this about a GO32
environment variable?
+-----------------------------------------------------------+
| Patrick Steele psteele AT mail DOT msen DOT com |
| WWW http://www.msen.com/~psteele |
+-----------------------------------------------------------+
| Check out QUAKE HQ! at http://www.msen.com/~psteele/quake |
+-----------------------------------------------------------+
- Raw text -