remove penguins theme

master
Colin Watson 19 years ago
parent fa2c9ce0c1
commit e999544a81

@ -16,7 +16,7 @@ HELPINST_ALL = $(notdir $(HELPINST))
DEFAULT_LANG =
PIC_COMMON = back.jpg head{,_a}.jpg {l,r,v}dots{,_a}.jpg
PIC_INSTALL = greeting.jpg pback.jpg phead.jpg panim{,_a}.jpg
PIC_INSTALL = greeting.jpg
FILES_INST = init languages $(TRANSLATIONS) 16x16.fnt kroete.dat \
$(PIC_COMMON) $(PIC_INSTALL) $(HELPINST_ALL)

@ -6,11 +6,6 @@
/bsplash.show { } def
/bsplash.done { } def
% no penguin stuff
/ptheme.init { } def
/p.timeout.animate { } def
/p.call.super { } def
%% include timeout.inc
%% include common.inc

@ -160,24 +160,6 @@
500 20 moveto dup print " " print
} if
ptheme {
% reverse direction
/p.xmas.dx p.xmas.dx neg def
key keyF9 eq
key keyF7 eq or {
% call super penguin
p.call.super
} {
key keyF1 ge
key keyF10 le and {
% read something
/p.read.timer rand 0x31 and neg -30 add def
} if
} ifelse
} if
% some special keys
debug.input
@ -624,7 +606,7 @@
menu.status {
menu.bar.color setcolor
currenttransparency
ptheme { 120 } { 70 } ifelse settransparency
70 settransparency
menu.bar.width menu.bar.height
fillrect
settransparency
@ -1072,67 +1054,45 @@
/init {
0 0 moveto currentpoint clip.size image
ptheme {
/head.x 31 def
/head.y 23 def
small_layout {
/head.x 70 def
/head.y 173 def
} {
small_layout {
/head.x 70 def
/head.y 173 def
} {
/head.x 234 def
/head.y 217 def
} ifelse
/head.x 234 def
/head.y 217 def
} ifelse
timeout.init
currentimage
ptheme {
/rdots "rdots.jpg" readimage def
/rdots_a "rdots_a.jpg" readimage def
/phead "phead.jpg" readimage def
/phead_a "head_a.jpg" readimage def
570 0 moveto rdots rdots_a showlogo
31 23 moveto phead phead_a showlogo
/rdots "rdots.jpg" readimage def
/rdots_a "rdots_a.jpg" readimage def
/vdots "vdots.jpg" readimage def
/vdots_a "vdots_a.jpg" readimage def
/ldots "ldots.jpg" readimage def
/ldots_a "ldots_a.jpg" readimage def
/head "head.jpg" readimage def
/head_a "head_a.jpg" readimage def
rdots free rdots_a free
phead free phead_a free
small_layout {
450 0 moveto rdots rdots_a showlogo
206 103 moveto vdots vdots_a showlogo
0 440 moveto ldots ldots_a showlogo
70 173 moveto head head_a showlogo
} {
/rdots "rdots.jpg" readimage def
/rdots_a "rdots_a.jpg" readimage def
/vdots "vdots.jpg" readimage def
/vdots_a "vdots_a.jpg" readimage def
/ldots "ldots.jpg" readimage def
/ldots_a "ldots_a.jpg" readimage def
/head "head.jpg" readimage def
/head_a "head_a.jpg" readimage def
small_layout {
450 0 moveto rdots rdots_a showlogo
206 103 moveto vdots vdots_a showlogo
0 440 moveto ldots ldots_a showlogo
70 173 moveto head head_a showlogo
} {
609 0 moveto rdots rdots_a showlogo
390 140 moveto vdots vdots_a showlogo
0 550 moveto ldots ldots_a showlogo
234 217 moveto head head_a showlogo
} ifelse
rdots free rdots_a free
vdots free vdots_a free
ldots free ldots_a free
head free head_a free
609 0 moveto rdots rdots_a showlogo
390 140 moveto vdots vdots_a showlogo
0 550 moveto ldots ldots_a showlogo
234 217 moveto head head_a showlogo
} ifelse
setimage
rdots free rdots_a free
vdots free vdots_a free
ldots free ldots_a free
head free head_a free
ptheme { ptheme.init } if
setimage
% set default language
"lang" findfile dup {
@ -1153,7 +1113,7 @@
/menu.text.xofs 10 def
/menu.text.yofs 2 def
/menu.item.height fontheight dup ptheme { 2 } { 3 } ifelse div add def
/menu.item.height fontheight dup 3 div add def
/menu.bar.height fontheight menu.text.yofs dup add add def
font.normal setfont
@ -1175,11 +1135,6 @@
/frame1.size { 365 195 } def
} ifelse
ptheme {
/frame1.pos { 210 170 } def
/frame1.size { 365 195 } def
} if
/frame4.pos { 560 62 } def
/frame4.size { 22 264 } def
@ -1192,7 +1147,7 @@
/boot.label.len 243 def
/boot.pos { boot.label.len 10 add ptheme { 480 } { small_layout { 380 } { 490 } ifelse } ifelse } def
/boot.pos { boot.label.len 10 add small_layout { 380 } { 490 } ifelse } def
/boot.buf.size cmdlinelength def
/boot.buf boot.buf.size string def
@ -1205,8 +1160,8 @@
/ms.down { 23 480 } def
/update.pos {
clip.size pop txt_dud_ready strsize pop sub ptheme { 60 } { 20 } ifelse sub
clip.size exch pop ptheme { 100 } { 75 } ifelse sub
clip.size pop txt_dud_ready strsize pop sub 20 sub
clip.size exch pop 75 sub
} def
} def
@ -1526,36 +1481,8 @@
% Global variables.
%
/ptheme false def
syslinux {
rand pop rand 4 shr 11 div 0xffff and
date weekday 5 lt { 15 } { 3 } ifelse
date month dup 12 eq exch 1 eq or { 1 add 2 div } if
mod 0 eq
date
dup 0x7d50c18 ge over 0x7d60101 le and
dup 0x7d50c12 eq or
dup 0x7d50c0b eq or
dup 0x7d50c06 eq or
dup 0x7d50c04 eq or
dup 0x7d50b1b eq or
exch pop or
0x417 cvp getbyte 0x40 and 0 ne or
{
/ptheme true def
} if
} if
/transp 0x30 def
/testX { 0x417 cvp getbyte 0x10 and 0 ne } def
testX { /ptheme false def } if
800 600 16 findmode setmode not {
800 600 32 findmode setmode not {
640 480 16 findmode setmode not {
@ -1572,8 +1499,7 @@ testX { /ptheme false def } if
/small_layout screen.size pop 640 eq def
ptheme { "pback.jpg" } { "back.jpg" } ifelse findfile
dup .undef eq ptheme and { pop "back.jpg" findfile /ptheme false def } if
"back.jpg" findfile
/background.file over def setimage loadpalette
/max_image_colors image.colors def
@ -1606,7 +1532,7 @@ dup .undef eq ptheme and { pop "back.jpg" findfile /ptheme false def } if
/debug 0 def
ptheme small_layout or
small_layout
true or {
/bsplash.done { } def
} {

@ -19,7 +19,7 @@
currentfont
font.normal setfont
update.pos moveto 8 3 rmoveto txt_dud_ready
ptheme { white } { lightblue } ifelse setcolor show
lightblue setcolor show
setfont
} if
} def

@ -24,5 +24,4 @@
%% include panel.inc
%% include keytables.inc
%% include locale.inc
%% include penguin.inc

@ -122,7 +122,7 @@
window.current .font get setfont
/boot.ed.width screen.size pop boot.pos pop sub ptheme { 60 } { 20 } ifelse sub def
/boot.ed.width screen.size pop boot.pos pop sub 20 sub def
/boot.ed.height fontheight 2 add def
/boot.window window.current def

@ -86,13 +86,7 @@
[ keyF3 0 "F3" /panel.options /panel.options.width /panel.options.update .undef ]
] def
/panel.penguin [
[ keyF1 0 "F1" /panel.ptheme /panel.ptheme.width /panel.ptheme.update .undef ]
[ keyF2 0 "F2" /panel.lang /panel.lang.width /panel.lang.update /lang.init ]
[ keyF3 0 "F3" /panel.options /panel.options.width /panel.options.update .undef ]
] def
/panel ptheme { panel.penguin } { panel.short } ifelse def
/panel panel.short def
} {
/panel.short [
[ keyF1 0 "F1" /panel.help /panel.help.width /panel.help.update .undef ]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

@ -1,416 +0,0 @@
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%
% "Penguins" boot screen.
%
% Copyright (C) 2001-2002, Raphael Quinet <quinet@gamers.org>
% Copyright (C) 2005 Steffen Winterfeldt <snwint@suse.de>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%
% Revision history:
% 2001-11-15 - (xray-blue.config) file derived from xray-green.config
% 2002-01-04 - file derived from xray-blue.config
% 2002-01-05 - keystrokes can influence penguins, added timeout message
% 2002-01-10 - adjusted the speed of the penguins
% 2005-08-21 - reworked graphics for 800x600 @ 16 bit color
% - reimplemented to fit to current openSUSE layout
%
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%
% Original comment by Raphael:
%
% This script is based on those included in SuSE 7.2 and SuSE 7.3, modified
% by Raphael Quinet. The walking penguins were extracted from the program
% "xpenguins" (http://xpenguins.seul.org/), which had borrowed them from the
% game "Pingus" (http://pingus.seul.org/). The original "walker" was created
% by Joel Fauche <joel.fauche@wanadoo.fr>, the "tumbler" was created by Craig
% Timpany <timpany@es.co.nz>, the "reader" and the "superpenguin" were
% created by Rob Gietema <tycoon@planetdescent.com>, Robin Hogan
% <R.J.Hogan@reading.ac.uk> and Brian Chu <chub@stuy.yi.org>.
%
% Requires the patched syslinux version included in openSUSE 10.0 or later.
%
% For more information on the original work done by Raphael, see:
% http://www.gamers.org/~quinet/lilo/.
%
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%
% Panel penguin entry.
%
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Show help window.
%
% ( ) => ( )
%
/panel.ptheme {
/panel panel.short def
penguin_about_popup
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Return width of panel entry.
%
% ( ) => ( width )
%
/panel.ptheme.width {
"About" strsize pop
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Redraw panel entry.
%
% ( panel ) => ( )
%
/panel.ptheme.update {
panel.text.moveto
"About" show
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Show penguin theme 'about' box.
%
% ( ) ==> ( )
%
/penguin_about_popup {
window.dialog
dup .title "About" put
dup .text
"Penguin theme originally made by Raphael Quinet <quinet@gamers.org>.
See http://www.gamers.org/~quinet/lilo/.
Modernized for openSUSE by Steffen Winterfeldt <snwint@suse.de>"
put
dup .buttons [
button.ok button.default actRedraw button.setaction
] put
dup window.init
window.show
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%
% penguin animations
%
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/p.xmas.xmin 192 def
/p.xmas.xmax 556 def
/p.xmas.x 500 def
/p.xmas.y 89 def
/p.xmas.dx -4 def
/p.xmas.frame 0 def
/p.xmas.frames 8 def
/p.xmas.src.x 252 def
/p.xmas.src.y 0 def
/p.xmas.src.w 32 def
/p.xmas.src.h 45 def
/p.walk.xmin 80 def
/p.walk.xmax 720 def
/p.walk.x 200 def
/p.walk.y 523 def
/p.walk.dx 4 def
/p.walk.frame 0 def
/p.walk.frames 8 def
/p.walk.src.x 3 def
/p.walk.src.y 1 def
/p.walk.src.w 30 def
/p.walk.src.h 30 def
/p.read.timer 0 def
/p.read.frame 0 def
/p.read.frames 4 def
/p.read.src.x 515 def
/p.read.src.y 1 def
/p.fall.ymax 520 def
/p.fall.ymin -31 def
/p.fall.x 762 def
/p.fall.y 0 def
/p.fall.frame 0 def
/p.fall.frames 8 def
/p.fall.src.x 3 def
/p.fall.src.y 65 def
/p.fall.src.w 30 def
/p.fall.src.h 25 def
/p.fall.dy -4 def % for super penguin
/p.super false def % show super penguin
/p.super.frames 2 def
/p.super.src.x 644 def
/p.super.src.y 0 def
/p.super.src.h 31 def
/ptheme.init {
currentimage
"panim.jpg" findfile dup setimage 0 0 image.size unpackimage /panim.img exch def free
"panim_a.jpg" findfile dup setimage 0 0 image.size unpackimage /panim_a.img exch def free
setimage
% xmas penguin
% save drawing background
p.xmas.xmin p.xmas.y moveto
/p.xmas.back
p.xmas.xmax p.xmas.xmin sub p.xmas.src.w add p.xmas.dx abs add
p.xmas.src.h savescreen
def
% it just needs the right size
/p.xmas.single 0 0 moveto p.xmas.src.w p.xmas.dx abs add p.xmas.src.h savescreen def
% walking penguin
% save drawing background
p.walk.xmin p.walk.y moveto
/p.walk.back
p.walk.xmax p.walk.xmin sub p.walk.src.w add p.walk.dx abs add
p.walk.src.h savescreen
def
% it just needs the right size
/p.walk.single 0 0 moveto p.walk.src.w p.walk.dx abs add p.walk.src.h savescreen def
% falling penguin
% save drawing background
/p.fall.back p.fall.x 10 moveto p.fall.src.w p.fall.src.h savescreen def
% one background line
/p.fall.back1 p.fall.x 10 moveto p.fall.src.w 1 savescreen def
% it just needs the right size
/p.fall.single 0 0 moveto p.fall.src.w p.fall.src.h savescreen def
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Draw next Xmas penguin frame.
%
% ( ) ==> ( )
%
/p.xmas.animate {
p.xmas.dx 0 lt {
p.xmas.dx p.xmas.x add p.xmas.xmin lt {
/p.xmas.dx p.xmas.dx neg def
} if
} {
p.xmas.dx p.xmas.x add p.xmas.xmax gt {
/p.xmas.dx p.xmas.dx neg def
} if
}
ifelse
/p.xmas.x p.xmas.x p.xmas.dx add def
/p.xmas.frame p.xmas.frame 1 add p.xmas.frames mod def
% copy background
p.xmas.x p.xmas.xmin sub 0 moveto
p.xmas.back 0xff p.xmas.single blend
% add penguin
p.xmas.src.x p.xmas.src.w p.xmas.frame mul add
p.xmas.src.y p.xmas.dx 0 gt { p.xmas.src.h add } if moveto
panim.img panim_a.img p.xmas.single blend
% draw
p.xmas.x p.xmas.y moveto p.xmas.single restorescreen
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Draw next walking penguin frame.
%
% ( ) ==> ( )
%
/p.walk.animate {
/p.read.timer p.read.timer 1 add 0 min def
p.read.timer 0 lt {
% slow down reading
p.read.timer 2 mod 0 eq { return } if
/p.read.frame p.read.frame 1 add p.read.frames mod def
} {
p.walk.dx 0 lt {
p.walk.dx p.walk.x add p.walk.xmin lt {
/p.walk.dx p.walk.dx neg def
} if
} {
p.walk.dx p.walk.x add p.walk.xmax gt {
/p.walk.dx p.walk.dx neg def
} if
}
ifelse
/p.walk.x p.walk.x p.walk.dx add def
/p.walk.frame p.walk.frame 1 add p.walk.frames mod def
} ifelse
% copy background
p.walk.x p.walk.xmin sub 0 moveto
p.walk.back 0xff p.walk.single blend
p.read.timer 0 lt {
% add penguin
p.read.src.x p.walk.src.w p.read.frame mul add
p.read.src.y
} {
% add penguin
p.walk.src.x p.walk.src.w p.walk.frame mul add
p.walk.src.y p.walk.dx 0 gt { p.walk.src.h add } if
} ifelse
moveto
panim.img panim_a.img p.walk.single blend
% draw
p.walk.x p.walk.y moveto p.walk.single restorescreen
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Draw next super penguin frame.
%
% ( ) ==> ( )
%
/p.super.animate {
p.fall.y p.fall.dy add p.fall.ymin lt {
/p.fall.y 0 def
/p.super false def
return
} if
/p.fall.y p.fall.y p.fall.dy add def
/p.fall.frame p.fall.frame 1 add p.fall.frames mod def
% copy background
0 0 moveto
p.fall.back 0xff p.fall.single blend
% add penguin
p.fall.src.x
p.fall.src.y p.fall.src.h p.fall.frame mul add moveto
panim.img panim_a.img p.fall.single blend
% draw
p.fall.x p.fall.y moveto p.fall.single restorescreen
} def
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Draw falling penguin.
%
% ( timeout time ) ==> ( )
%
/p.timeout.animate {
dup 0 le {
pop pop
% it vanishes...
p.fall.x p.fall.y moveto p.fall.back restorescreen
p.call.super
return
} if
over sub neg p.fall.ymax mul exch div
dup p.fall.y gt {
p.fall.y 1 2 index 1 sub {
p.fall.x exch moveto p.fall.back1 restorescreen
} for
} if
/p.fall.y exch def
/p.fall.frame p.fall.frame 1 add p.fall.frames mod def
% copy background
0 0 moveto
p.fall.back 0xff p.fall.single blend
% add penguin
p.fall.src.x p.fall.src.w p.fall.frame mul add
p.fall.src.y moveto
panim.img panim_a.img p.fall.single blend
% draw
p.fall.x p.fall.y moveto p.fall.single restorescreen
} def
% call super penguin
/p.call.super {
p.super { return } if
/p.super true def
p.fall.y 0 le {
/p.fall.y p.fall.ymax def
} if
% super penguin has different height
/p.fall.src.x p.super.src.x def
/p.fall.src.y p.super.src.y def
/p.fall.src.h p.super.src.h def
% and less frames
/p.fall.frames p.super.frames def
% change them
p.fall.back free
/p.fall.back p.fall.x 10 moveto p.fall.src.w p.fall.src.h savescreen def
p.fall.single free
/p.fall.single 0 0 moveto p.fall.src.w p.fall.src.h savescreen def
} def
ptheme {
% ( time ) ==> ( )
/Timer {
dup 3 mod 0 eq { p.xmas.animate } if
dup 3 mod 1 eq { p.walk.animate } if
pop
p.super { p.super.animate } if
} def
} if

@ -1,12 +0,0 @@
all: high
high:
pngtopnm -background black pback.png | cjpeg -optimize -quality 95 >pback.jpg
pngtopnm -background black panim.png | cjpeg -optimize -quality 95 >panim.jpg
pngtopnm -alpha panim.png | pgmtoppm white | cjpeg -optimize -quality 95 >panim_a.jpg
low:
pngtopnm -background black pback.png | cjpeg -optimize -quality 85 >pback.jpg
pngtopnm -background black panim.png | cjpeg -optimize -quality 85 >panim.jpg
pngtopnm -alpha panim.png | pgmtoppm white | cjpeg -optimize -quality 85 >panim_a.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

@ -7,8 +7,6 @@
/Timeout {
% first time
ptheme { over over p.timeout.animate } if
dup /timeout.time exch def
over sub neg timeout.symbols mul exch div
@ -37,16 +35,14 @@
} forall
} {
ptheme not {
white setcolor
white setcolor
timeout.time.x timeout.time.y moveto -30 0 rmoveto
currentpoint 30 fontheight image
timeout.time.x timeout.time.y moveto -30 0 rmoveto
currentpoint 30 fontheight image
timeout.time 10 mul 150 add 182 div "%ds" timeout.buf sprintf
timeout.time 10 mul 150 add 182 div "%ds" timeout.buf sprintf
timeout.time.x timeout.time.y moveto timeout.buf showright
} if
timeout.time.x timeout.time.y moveto timeout.buf showright
timeout.last 1 timeout.current {
1 sub dup 0 ge {

Loading…
Cancel
Save