Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5920
| From | druck <news@druck.org.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: BBC BASIC - 'MODE MODE' |
| Date | 2019-12-09 16:19 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <qsls6t$c2j$1@dont-email.me> (permalink) |
| References | <6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com> <581db42db9basura@invalid.addr.uk> <004cc11d58.Matthew@sinenomine.freeserve.co.uk> |
On 05/12/2019 19:34, Matthew Phillips wrote: > Not quite right. MODE used as a function returns the current mode number, > not the default mode. > > MODE MODE > > thus sets the mode to the current mode. What is the point of that? Well, > the screen gets cleared and various things will be reset (not sure what -- > maybe graphics window, palette, etc.). That's correct. If you want to run a non desktop program using the same resolution and colour depth as the desktop, you might think a mode change isn't necessary, but there are lot of things which the Wimp changes when in the desktop, which need resetting to the defaults. The MODE command resets these in one go, and to use the same resolution and colour depth as the desktop, MODE MODE can be used. The Wimp will also detect a mode change has occurred, and restore its settings on return to the desktop. But bear in mind RISC OS's legacy graphics system, which a non desktop application will probably be using, is very dependent on colour depth (256 colours work differently from 2 to 16, and more than 256 colours needs newer APIs). So you might actually want to specify your mode requirements explicitly. ---druck
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-05 06:16 -0800
Re: BBC BASIC - 'MODE MODE' Martin <News03@avisoft.f9.co.uk> - 2019-12-05 15:20 +0000
Re: BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-05 08:08 -0800
Re: BBC BASIC - 'MODE MODE' Richard Ashbery <basura@invalid.addr.uk> - 2019-12-05 17:11 +0000
Re: BBC BASIC - 'MODE MODE' Matthew Phillips <spam2011m@yahoo.co.uk> - 2019-12-05 19:34 +0000
Re: BBC BASIC - 'MODE MODE' druck <news@druck.org.uk> - 2019-12-09 16:19 +0000
BBC BASIC - 'MODE MODE' fp53hxy@gmail.com - 2019-12-05 09:37 -0800
Re: BBC BASIC - 'MODE MODE' Steve Fryatt <news@stevefryatt.org.uk> - 2019-12-05 20:44 +0000
Re: BBC BASIC - 'MODE MODE' "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-12-05 21:01 +0000
Re: BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-06 05:03 -0800
Re: BBC BASIC - 'MODE MODE' "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-12-06 14:07 +0000
Re: BBC BASIC - 'MODE MODE' Matthew Phillips <spam2011m@yahoo.co.uk> - 2019-12-06 15:59 +0000
csiph-web