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

  1. Path: sparky!uunet!mcsun!uknet!pcl!gpcec
  2. From: gpcec@sun.pcl.ac.uk (Tom Kirby-Green)
  3. Newsgroups: comp.sys.acorn
  4. Subject: Reading mode variables
  5. Message-ID: <1992Aug15.180817.12809@sun.pcl.ac.uk>
  6. Date: 15 Aug 92 18:08:17 GMT
  7. Organization: Polytechnic of Central London
  8. Lines: 41
  9.  
  10.  
  11. Folks,
  12.         A quick question...
  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.         R1 = 4 ( horizontal )
  18.                 code    max pixels
  19.         R2 ==   0       1280
  20.                 1       640
  21.                 2       320
  22.                 3       160
  23.         R1 = 5 ( vertical )
  24.         R2 ==   1       512
  25.                 2       256
  26.  
  27.         Now this is al very well, but I have RISC OS 3 and C v4. Can
  28. someone ( Acorn? ) give me the return codes and their values for the
  29. "new" modes RISC OS 3 provides ? Does C v4 cover this or do I need a
  30. up grade. I'm currently using "old" ( but fairly good ) Dabs Press
  31. books until the v3.1 PRMs appear ( ho ho ), but *really* need this 
  32. info now!
  33.         
  34.         P.S. Anyone managed screen switching in C? I'm using OS_Byte
  35. 112 + 113 but they don't seem to do anything - yes, I set the screen
  36. size to at least twice using "screensize" in my !Run file. Any ideas?
  37.  
  38.  
  39.         Ok - that was 2 questions. Thanks anyway. :-)
  40.  
  41.   /------------------| The Polytechnic Of Central London |-------------------\
  42.   \     Name  : Tom Kirby-Green       /---\ / /    /--\ /\  \ /--\ /--\     /
  43.    \    EMail : gpcec@sun.pcl.ac.uk   \---\ | |    \--  | \ | |    \--     /
  44.     \   Serving : NCC-1701-D          \---/ / \--/ /--/ \  \/ \--/ /--/   /
  45.      \----------| "Acorn Archimedes - A RISC Worth Taking!" |------------/
  46. -- 
  47.   /------------------| The Polytechnic Of Central London |-------------------\
  48.   \     Name  : Tom Kirby-Green       /---\ / /    /--\ /\  \ /--\ /--\     /
  49.    \    EMail : gpcec@sun.pcl.ac.uk   \---\ | |    \--  | \ | |    \--     /
  50.     \   Serving : NCC-1701-D          \---/ / \--/ /--/ \  \/ \--/ /--/   /
  51.