[comp.binaries.amiga] v02i041: wbdepth - adjust workbench screen depth

page@swan.ulowell.edu (Bob Page) (11/29/88)

Submitted-by: bjornk@bula.se (Bjorn Knutsson)
Posting-number: Volume 2, Issue 41
Archive-name: workbench/wbdepth.uu

WBDepth changes the number of planes of the WB screen on the fly.
No need to reboot or edit the kickstart disk.

[Sources not supplied/available.  This is *not* the same as 'oneplane'
 posted to comp.sources.amiga.  ..Bob]

#	This is a shell archive.
#	Remove everything above and including the cut line.
#	Then run the rest of the file through sh.
#----cut here-----cut here-----cut here-----cut here----#
#!/bin/sh
# shar:    Shell Archiver
#	Run the following text with /bin/sh to create:
#	WBDepth.doc
#	WBDepth.uu
# This archive created: Mon Nov 28 21:44:12 1988
cat << \SHAR_EOF > WBDepth.doc

	Have you read the info on how to modify KickStart disk so that
you can have 8 colors on the Workbench? Interesting, isn't it?

	The unfortunate things are you, 500 & 2000 & kickstart on the rom
owners, are left in the cold, and it is a hassle if you want to change
the depth back and forward (i.e. you need to reboot with different
kickstart disk everytime).

	Well, here comes 'WBDepth' to the rescue....
What WBDepth does is simply changes the number of planes of the WB screen
on the fly. No need to reboot, no need to bother with kickstart disk.

Usage:
	WBDepth [number]
Example:
	WBDepth		-> will show the current WB screen parameters
	WBDepth ?	-> will show the usage
	WBDepth 1	-> change to 1 planes (2 colors)
	WBDepth 2	-> change to 2 planes (4 colors), standard
	WBDepth	3	-> change to 3 planes (8 colors)
	WBDepth 4	-> don't try it, unless you are ready to reboot

	This is CLI only program, [number] is a single digit number 1-5.
However, don't use number greater than 3. The ability to use the number
greater than 3 is just there to show that the system will screw up,
and will hang, and perhaps will guru (CATS: what is wrong here ?).
If you want speed use 1, and if you want fanciness use 3 (8 colors).

	To see the speed variation, here some timing for 'Type'ing a
4000 bytes text file on CLI (Blitzfonts installed).
	3 planes: 15   seconds
	2 planes:  9   seconds
	1 plane :  5.5 seconds
(note: no wonder if 'Blitz' can go that fast, being written is assembly
plus only using 1 plane for sure will help the speedup).

	8 colors will be suitable for self-bootable graphics demo disk.
In that case you might need to grab 'SetColor' on the 'WBench8.arc'
(this arc file contains the infomation on how to modify the kickstart
disk to get 8 colors, and some utility programs). Setcolor will allow
you the change the extra 4 colors (color 4-7) automatically. For
manual changes you can use 'PopColor' or 'ColorDemo'.

	All programs mention here are PD or Shareware, and so does this
program. It is a Public Domain, dedicated to ALL PD and SHAREWARE authors.
Thanks for writing GREAT programs for this GREAT machine that we all LOVE.
	Also thanks to Sysops across the nation for keeping PD programs
distributed. I know it is a dirty job, but somebody got to do it.

	Finally to you all, AMIGA users, Merry Christmas!!!

- Give a big favor will you, spread this program around. Danke!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WBDepth (c) Copyright 1987 by Andry Rachmat

Plink: A*Rachmat
Other BBSes: I might be there.
SHAR_EOF
cat << \SHAR_EOF > WBDepth.uu

begin 644 WBDepth
M```#\P`````````#``````````(```(`````+@````$```/I```"`$[Z!;Q.Q
M50``+RT`"$ZZ!R983TC`+P`O+0`(+RR`DDZZ!U!/[P`,3EU.=4Y5``!*K0`(6
M9P@O+0`(8<I83TJL@`)G"B\L@`).N@<Z6$].N@;X3EU.=4Y5``!"@"YL@'I.6
M=4Y=3G5.5?^X2.<,,"!M``S1[0`(0BC__TZZ!NHI0("2(&T`#`P0`#]F"$ALX
M@#=AFEA/0J=(>@0V3KH'*E!/)$!*@&8*/SP`%$ZZ!IQ43RE*@`(I:@!D@(XJT
M*@`X/SP`$$AL@%`@12\H`!I.N@5R3^\`"DI`9Q1(>@0&3KK_*%A/2&R`4$ZZ!
M_T183R`%T+P````L*T#_\"!M__`K:``D_^@@;?_H)F@`!"!M__`P*``82,`K@
M0/_B(&W_\#`H`!I(P"M`_]YP`!`K``4[0/_<(`K0O````"(K0/_\(&W__"M0F
M_^Q*K?_L9Q0@;?_LL>W_\&<*(&W_["M0_^Q@YDJM_^QF"DAZ`Y-.NO["6$\@;
M;?_\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X5$].74YU3OH`T
M`BQL@(I.[O_$3OH``DSO``X`!"QL@(I.[O_03OH``B)O``0L;("&3N[^8D[Z(
M``),[P`#``0L;("&3N[_.D[Z``(L;("&3N[_?$[Z``(B;P`$("\`""QL@(9.8
M[O\N3OH``BQL@(8B;P`$("\`"$[N_=@L;("&3N[_=B!O``0L;(".3N[]S"!O<
M``0L;(`"3N[^ABQL@`).[OYZ```#[`````$````!```&,@````````/R```#-
MZ@```!D`````5T)$97!T:"!V97(Q+C`*($-O<'ER:6=H="`Q.3@W(&)Y($%NS
M9')Y(%)A8VAM870N`%5S86=E.B!70D1E<'1H(%MN=6UB97)="@!7;W)K8F5N]
?8V@@4V-R965N"@``%``````#\@```^L````!```#\FUB1
``
end
size 2236
SHAR_EOF
#	End of shell archive
exit 0
-- 
Bob Page, U of Lowell CS Dept.  page@swan.ulowell.edu  ulowell!page
Have five nice days.