🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1188

Re: Aspect ratio in mode X

#1188
From: Michael Duffy
Date: Fri, 13 Nov 1992 07:27
24 lines
1564 bytes
In article <2vdq+1a@lynx.unm.edu> blakely@triton.unm.edu () writes:
>
>When I use the modeX 320 x240 resolution I am not getting a square aspect
>ratio.  It seems to be squashing the screen.  I'm using borlandc and
>the twk bgi library.  I was under the impression that this mode was designed
>to have a 1:1 aspect ratio.  Any ideas and help would be greatly
>appreciated.
>
Yeah, Michael Abrash's code has a little bug in the mode setting routine.
the code:
mov  dx,MISC_OUTPUT  ; i.e. 03c2h
mov  al,0e7h
out  dx,al

needs to have the middle line changed to:
mov  al,0e3h

This is for Abrash's code from Dr. Dobbs Journal (July 1991), and for any code
based on his routines without this bug fixed.  As for what you can do about
your bgi library...... Can't help you there.  Maybe contact the library author.

Later and Good Luck,
Mike Duffy (mduffy@aludra.usc.edu)
/* Cinema Major and Computer Geek rolled into one.  Dangerous combination! */
Technical Details
Message-ID: <1dvlcbINN7e7@aludra.usc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!chaph.usc.edu!aludra.usc.edu!not-for-mail
References: <1992Nov4.203406.1527@midway.uchicago.edu> <Bx7xt8.813@news.cso.uiuc.edu> <2vdq+1a@lynx.unm.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!chaph.usc.edu!aludra.usc.edu!not-for-mail
From: mduffy@aludra.usc.edu (Michael Duffy)
Newsgroups: rec.games.programmer
Subject: Re: Aspect ratio in mode X
Date: 12 Nov 1992 23:27:07 -0800
Organization: University of Southern California, Los Angeles, CA
Lines: 26
Distribution: usa
Message-ID: <1dvlcbINN7e7@aludra.usc.edu>
References: <1992Nov4.203406.1527@midway.uchicago.edu> <Bx7xt8.813@news.cso.uiuc.edu> <2vdq+1a@lynx.unm.edu>
NNTP-Posting-Host: aludra.usc.edu