Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe30.ams2.POSTED!00000000!not-for-mail Subject: Re: SWI / BASIC command to read number of Pixels in a screen mode Newsgroups: comp.sys.acorn.programmer Reply-To: Bryan Hogan From: Bryan Hogan X-Editor: EmailEdit 6.00 Message-ID: <20cc8c1952.bryan@helpful.demon.co.uk> References: <11510590.202.1317160195012.JavaMail.geo-discussion-forums@yqnk41> Lines: 20 User-Agent: Messenger-Pro/6.00 (MsgServe/6.00S) (RISC-OS/4.39) NewsHound/1.42 NNTP-Posting-Host: 62.49.21.160 X-Complaints-To: abuse@demon.net X-Trace: newsfe30.ams2 1317171003 62.49.21.160 (Wed, 28 Sep 2011 00:50:03 UTC) NNTP-Posting-Date: Wed, 28 Sep 2011 00:50:03 UTC Date: Wed, 28 Sep 2011 01:49:19 +0100 Xref: x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:784 In message <11510590.202.1317160195012.JavaMail.geo-discussion-forums@ yqnk41> Michael wrote: > suitable SWI to return the width of a MODE MODE'd Screen Dragging out some very old code of mine: SYS "OS_ReadModeVariable",-1,3 TO ,,ncolours%:ncolours%+=1 SYS "OS_ReadModeVariable",-1,4 TO ,,screenXfact% SYS "OS_ReadModeVariable",-1,5 TO ,,screenYfact% SYS "OS_ReadModeVariable",-1,11 TO ,,screenXpix% SYS "OS_ReadModeVariable",-1,12 TO ,,screenYpix% screenXmax%=screenXpix%<