home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / acorn / 8252 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.5 KB

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