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