🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #216

Re: Palette utility obscurity

#216
From: Ian Palmer
Date: Wed, 07 Oct 1992 09:39
57 lines
3140 bytes
In article <1992Oct6.163937.9771@cs.kuleuven.ac.be> ericl@cs.kuleuven.ac.be (Eric Lafortune) writes:
(on bahalf of tytgat@esat.kuleuven.ac.be)
>
>A WIMP problem this time :
>
>On page 1257 in the PRM we can read about the Message_PaletteChange :
>
>I am particulary interested in the sentence : "Note though that the
>palette utility automatically forces a redraw of the whole screen if
>any of the Wimp's standard colours change their logical mapping, so
>applications don't have to take further action."
>
>Does this mean that when a Wimp program changes a colour in a 16 colour
>mode using "VDU 19, <colour number>, 16, <red>, <green>, <blue>", the
>palette utility automatically issues a redraw of the screen ???
>

I would guess not.

My understanding of this sentence, and from noticong what happans, I
would guess that this only applies to non-16 colour modes.

I have noticed, in 256 colour modes - but I would guess that the same
is true for 4 and 2 colour modes as well - that when changing colours
with !Palette the screen does get redrawn. I would guess that the
sentence means, precicly what it says, that when a logical mapping for
a wimp colour changes the screen is redrawn. This will never happen in
16 colour modes as there is only direct mapping os colours in this
mode (16 wimp colours, 16 totally definable colours available). Only
in 256 colours modes (256 colours from a very restricted palette), and
4 and 2 colours modes is there any logical mapping of colours.

For example, in the standard 256 mode palette and standard wimp
palette, wimp colour 0 (white) will be mapped to screen colour 255 (I
think), but if you make wimp colour 0, say, black - then it will be
mapped to screen colour 0 - needing a total redraw rather than a
simply change to the rgb values the VIDC outputs to the monitor.

This does rather suggest that the palette file, which someone has
already mentioned in a different thread, being simply a series of VDU
19 calls is a little messy. O.K. fine, in a 16 colour mode all you
need to do is treat is as such, but in all other screen types more
complex things need to go on, which will totally ignore half of the
file (ie. the 19,c,16 part) - a bit wasteful.

Ian

Of course this is totally based on my simple understanding, built up
without the help of PRMs - due to a lack of said item for RO3. Ho
Hum.


-- 
                            E-mail : ijp@doc.ic.ac.uk
 ___           __       Snail mail : Department of Computing, Huxley Building,
  /  _   _    /_/ _   / _ _   _  _   Imperial College, 180 Queens Gate,
_/_ (_|_| )  /   (_|_(_| ) )_|/_)    London. SW7 2BZ. England.
Technical Details
Message-ID: <1aub7vINNi7m@oak4.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
References: <1992Oct6.163937.9771@cs.kuleuven.ac.be>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
From: ijp@doc.ic.ac.uk (Ian Palmer)
Newsgroups: comp.sys.acorn.tech
Subject: Re: Palette utility obscurity
Date: 7 Oct 1992 10:39:11 +0100
Organization: Department of Computing, Imperial College, University of London, UK.
Lines: 57
Message-ID: <1aub7vINNi7m@oak4.doc.ic.ac.uk>
References: <1992Oct6.163937.9771@cs.kuleuven.ac.be>
NNTP-Posting-Host: oak4.doc.ic.ac.uk