[comp.lang.pascal] Turbo Pascal Graphics Question, EGA/CGA & mice

mal@hjuxa.UUCP (LEACH) (04/18/88)

	Is it really possible for an EGA board to emulate a CGA board
in hi-res (640x200) mode while running a program compiled with
turbo pascal.   When using version 3.?? the HiRes; HiResColor(X);
calls have unpredictable results at best.  I never know what the
background color will be on a computer packing an EGA, the same
program works well on a CGA.

	Using Turbo 4.0 I have been able to resolve the problem by
using Initgraph and setting the mode to CGAHi or EGALo depending on
the hardware and eliminating any references to the "graph3" library.
This is still a problem 'cause the mouse driver that I use from mouse
systems does not work correctly with an EGA; the cursor does not show up.

	Is there something I must do to tell the EGA specifically
to emulate the CGA in such a way that the background color will
always be black, as it is on the CGA.  The other, possibly more
desirable, alternative is to make the mouse systems mouse work
correctly in EGALo mode on an EGA equipped machine.

	I appreciate any help I can get.

Thanks
-- 
Michael A. Leach
_________________________________________________________
      ...!{ihnp4,decvax,clyde,rutgers,worm}!hjuxa!mal
Practice SAFE COMPUTING: Always wear a write protect tab!