home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1
- Newsgroups: comp.sys.acorn
- Subject: Re: Reading mode variables
- Message-ID: <1992Aug16.211310.702@cs.aukuni.ac.nz>
- From: jwil1@cs.aukuni.ac.nz (TMOTA)
- Date: Sun, 16 Aug 1992 21:13:10 GMT
- Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
- References: <1992Aug15.180817.12809@sun.pcl.ac.uk>
- Organization: Computer Science Dept. University of Auckland
- Lines: 19
-
- gpcec@sun.pcl.ac.uk (Tom Kirby-Green) writes:
- > I'm using the OS_ReadModeV SWI to get the screen pixel
- >res. Placing 4 and 5 in R1 for the horizontal and vertical
- >res, with R2 containing the result which is interpreted as follows
-
- This is not the best way to do this. I can't remember the specifics of
- the calls, but you can use ReadModeV/ReadVduVariables to read the
- number of pixels wide and high of any screen mode, and also the "XEig" and
- "YEig" factors, from which you can calculate the OS coordinate width and
- height of the screen. This will then work correctly for *any* screen mode,
- and not just 1280/640/320/160 x 512/256 sizes.
-
- I don't have the info. close at hand, but I can try to remember to look it
- up if you like... but if you have info on ReadMode/VDU Variables calls,
- you should be able to find the 4 calls needed without any problems...
- --
- _________________ "I'd like to answer this question in two ways:
- /____ _ _/_ __ First in my normal voice, and then
- // / //_//_ /_/ in a silly, high-pitched whine." (Monty Python)
-