🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1190

Aspect ratio in modeX

#1190
From: colin buckley
Date: Fri, 13 Nov 1992 09:59
52 lines
2514 bytes
Date Entered: 11-13-92 04:51
B(>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.

I have no idea what your saying, but I here's a message regarding aspect
ratios I just read in another conference.  But before that, are you
sure you're in 320x240?  Try drawing a line from 0,0 to 0,239 and another
from 0,239 to 319,239 and see if it comes out right.  Anyways, on with the
other message.
===========================================================================
Date: 11-09-92 (13:00)             Number: 2688
From: JON-ESPEN HETTY              Refer#: NONE
  To: ANDERS HORNTVEDT              Recvd: YES
Subj: Re: 320x240                    Conf: (1150) RN-GameDes
---------------------------------------------------------------------------
 AH> I know that this is a reply to an old message, but could you please
 AH> explain what an aspect ratio is?

The aspect ratio is a meassure of how square a pixel is. Because the
monitors width/hight ratio is 4:3, the resolution of the screen must
compensate this to get a square pixel.

In the 320x200 resolution the aspect ratio of a pixel will be :

  4/3      = 1.333333333
  320/200  = 1.6

  1.33/1.6 = 0.831  -> Not a square pixel

If you are using the 320x240 resolution, however, the aspect ratio is :

  4/3       = 1.33
  320/240   = 1.33

  1.33/1.33 = 1  -> The pixel is a true square

As an example of the result of an aspect ratio different from 1, you could
try drawing a circle in 320x200 resolution. Because of the difference in
hight and width of a pixel, the circle will become an oval instead.
You would have to compensate for this by drawing an oval when you want
a circle.
In the 320x240 mode, no compensation is needed.

Hope this helps.

  Jon.
---
   RM 2.00 : RoseNet<=>Usenet Gateway : Rose Media 416-733-2285
Technical Details
Message-ID: <1992Nov13.095944.19628@rose.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!rose!usenet

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!rose!usenet
From: colin.buckley@rose.com (colin buckley)
Subject: Aspect ratio in modeX
Organization: Rose Media Inc, Toronto, Ontario.
Date: Fri, 13 Nov 1992 09:59:43 GMT
Message-ID: <1992Nov13.095944.19628@rose.com>
Sender: usenet@rose.com (Usenet Gateway)
X-Gated-By: Usenet <==> RoseMail Gateway (v1.70)
Lines: 52