🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #26449

Turbo Pascal Graphics Question, EGA/CGA & mice

#26449
From: LEACH
Date: Mon, 18 Apr 1988 14:24
28 lines
1627 bytes
	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!
Technical Details
Message-ID: <885@hjuxa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!cbmvax!rutgers!hjuxa!mal

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!cbmvax!rutgers!hjuxa!mal
From: mal@hjuxa.UUCP (LEACH)
Newsgroups: comp.sys.ibm.pc,comp.lang.pascal
Subject: Turbo Pascal Graphics Question, EGA/CGA & mice
Message-ID: <885@hjuxa.UUCP>
Date: 18 Apr 88 14:24:27 GMT
Distribution: na
Organization: Somewhere in New Jersey
Lines: 28
Keywords: EGA emulating CGA, Turbo 4.0, mouse systems