Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!snorkelwacker!apple!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!wrangell!roberts From: roberts@wrangell.scl.cwru.edu (Brian Roberts) Newsgroups: comp.lang.pascal Subject: Re: TP 5.0 EGA Mode? Message-ID: <1990Feb7.005530.21461@usenet.ins.cwru.edu> Date: 7 Feb 90 00:55:30 GMT References: <1085marxb@yvax.byu.edu> Reply-To: roberts@SCL.CWRU.Edu (Brian Roberts) Organization: Smith Undergrad Lab, CWRU, Cleve. OH Lines: 40 X-Post-Machine: wrangell.scl.cwru.edu In article <1085marxb@yvax.byu.edu> marxb@yvax.byu.edu writes: > > I have recently written a program on my PC at home that has some >graphics in it. They look nice on my EGA machine at home but when the program >is used on the target PC, the graphics are different because it uses VGA. My >question to the Net gurus is how to initialize the VGA computer to run my pro- >gram in EGA mode so I don't have to do a lot of code modification. I understand >that it can be done but I am not sure how to do it based on the information >provided in the manuals. I know it may seem silly to only want EGA graphics >but that is all I have and for the application is sufficient. I would greatly >appreciate any help on this. Thanks in advance. > >Brad Marx marxb@byuvax > bradm@byuvax I assume you used: InitGraph ( GrDriver, GrMode, '' ); ( Declare GrDriver and GrMode to be of type INTEGER ) Insert the following two lines before InitGraph: GrDriver := ; GrMode := ; and can be found on the table below: resolution colors pages -------- ------ ---------- ------ ----- EGA EGALo 640 x 200 1 - 16 4 EGAHi 642 x 350 1 - 16 2 EGA64 EGA64Lo 640 x 200 1 - 16 1 EGA64Hi 640 x 350 1 - 4 1 EGAMonoHi 642 x 350 1 on 64K card 2 on 256K card You can also press CTRL-F1 when the cursor is on InitGraph for more help. Brian