[comp.os.msdos.programmer] How to -graphic resolution

AARIE@BGUVM.BITNET (03/17/91)

  I'm writing a function plotting program and I'd like to take
advantage of the largest graphic possible.

  Is there a way to detect the current addapter(Hercules,EGA,VGA,etc.)
and set the mode to the maximum screen size(mono is just fine) ?

  Thanks,
        Arik

ts@uwasa.fi (Timo Salmi) (03/18/91)

In article <91075.192419AARIE@BGUVM.BITNET> AARIE@BGUVM.BITNET writes:
>
>  I'm writing a function plotting program and I'd like to take
>advantage of the largest graphic possible.

Just for general information.  There are many function plotting
programs already in existence including /pc/graphics/plot61.zip and
/pc/ts/tsfunc13.arc available from garbo.uwasa.fi archives. 

>  Is there a way to detect the current addapter(Hercules,EGA,VGA,etc.)
>and set the mode to the maximum screen size(mono is just fine) ?

Sure.  For example Turbo Pascal and Turbo C have inbuilt routines
for the task.  There are also separate programs for this task to be
found e.g. in /pc/sysinfo/infop145.zip and /pc/ts/util31.arc. 

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

joe@proto.com (Joe Huffman) (03/20/91)

AARIE@BGUVM.BITNET writes:


>  I'm writing a function plotting program and I'd like to take
>advantage of the largest graphic possible.

>  Is there a way to detect the current addapter(Hercules,EGA,VGA,etc.)
>and set the mode to the maximum screen size(mono is just fine) ?

Yes.  The Flash Graphics library (which I wrote) that comes with 
Zortech C/C++ does just that.  fg_init() will detect which graphics
board is available and initialize it with the highest resolution possible.
There is an environment variable override for those cases where the
alogorithm fails (rare but it does happen) -- or if you want something
less than the max resolution with more colors.


---
Zortech mailing list: send email to 'ztc-list-request@uunet.uu.net' with:
Add: your-user-name@your-machine-name
In the body of the message.
---
Send Zortech bug reports to 'zortech-bugs@zortech.com'
Send requests for educational discounts to 'zortech-ed@zortech.com'
---
Zortech is my major source of income.  Statements about them or their 
competitors cannot be totally without bias.  

-- 
joe@proto.com