diff --git a/Makefile b/Makefile index bce7ce1..555ecaa 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ TRANSLATIONS = $(addsuffix .tr,en $(notdir $(basename $(wildcard po/*.po)))) DEFAULT_LANG = -PIC_COMMON = back.jpg head{,_a}.jpg +PIC_COMMON = back.jpg FILES_CORE = init languages diff --git a/common.inc b/common.inc index 6e29b82..ea153fa 100644 --- a/common.inc +++ b/common.inc @@ -1024,21 +1024,6 @@ timeout.init - currentimage - - /head "head.jpg" readimage def - /head_a "head_a.jpg" readimage def - - small_layout { - 70 173 moveto head head_a showlogo - } { - 234 217 moveto head head_a showlogo - } ifelse - - head free head_a free - - setimage - % set default language "lang" findfile dup { /tmp over length 1 add 2 max string def diff --git a/debian/changelog b/debian/changelog index d6685d0..2e7e01c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +gfxboot-theme-ubuntu (0.1.6) UNRELEASED; urgency=low + + * Remove timeout clock graphics, which seem to break on some machines and + were scary-looking anyway (closes: Ubuntu #21210). + + -- Colin Watson Wed, 11 Jan 2006 11:47:56 +0000 + gfxboot-theme-ubuntu (0.1.5) dapper; urgency=low * debian/rules: Stop trying to install *.dat. diff --git a/head.jpg b/head.jpg deleted file mode 100644 index 81746ee..0000000 Binary files a/head.jpg and /dev/null differ diff --git a/head_a.jpg b/head_a.jpg deleted file mode 100644 index 0f14648..0000000 Binary files a/head_a.jpg and /dev/null differ diff --git a/timeout.inc b/timeout.inc index 539968f..a11d956 100644 --- a/timeout.inc +++ b/timeout.inc @@ -5,73 +5,23 @@ % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % ( timeout time ) ==> ( ) /Timeout { - % first time + /timeout.time exch def + /timeout.timeout exch def - dup /timeout.time exch def + timeout.time 10 mul 150 add 182 div /timeout.seconds exch def - over sub neg timeout.symbols mul exch div + timeout.seconds timeout.current eq { return } if + /timeout.current timeout.seconds def - dup timeout.current eq { pop return } if + white setcolor - /timeout.last timeout.current def - /timeout.current exch def + timeout.time.x timeout.time.y moveto -30 0 rmoveto + currentpoint 30 fontheight image - timeout.current timeout.symbols ge { - - timeout.time.x timeout.time.y moveto -30 0 rmoveto - currentpoint 30 fontheight image - - 0 1 timeout.symbols 1 sub { - timeout.clear { 2 } { 1 } ifelse drawtsymbol - } for - - % free memory - timeout.areas { - /to.tmp exch def - - to.tmp .to_back over over get free - to.tmp .to_back .undef put - - } forall - } { - - white setcolor - - 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 0 gt { + timeout.seconds "%ds" timeout.buf sprintf timeout.time.x timeout.time.y moveto timeout.buf showright - - timeout.last 1 timeout.current { - 1 sub dup 0 ge { - 1 drawtsymbol - } if - } for - } ifelse -} def - - -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -% draw a timeout symbol -% ( index status ) ==> () -% -% status: 0: init, 1: clear, 2: set -% -/drawtsymbol { - /timeout.status exch def - - timeout.status 1 eq timeout.status 2 eq or { - timeout.areas exch get /to.tmp exch def - - timeout.x to.tmp .to_x get add - timeout.y to.tmp .to_y get add - moveto - - to.tmp .to_back get - restorescreen - } if } def @@ -83,77 +33,13 @@ % /timeout.init { /timeout.current -1 def - /timeout.symbols timeout.areas length def - /timeout.clear true def /timeout.buf 64 string def /timeout.time.x timeout.x 60 add def /timeout.time.y timeout.y 120 add def - - timeout.areas { - /to.tmp exch def - - timeout.x to.tmp .to_x get add - timeout.y to.tmp .to_y get add - moveto - - to.tmp .to_back - 6 6 savescreen - put - - } forall - } def /timeout.x { head.x } def /timeout.y { head.y } def -% timeout.areas entries -/.to_x 0 def -/.to_y 1 def -/.to_back 2 def - - -/timeout.areas [ - [ 54 0 .undef ] - [ 62 0 .undef ] - [ 70 3 .undef ] - [ 77 7 .undef ] - [ 84 12 .undef ] - [ 89 18 .undef ] - [ 94 25 .undef ] - [ 97 33 .undef ] - [ 99 41 .undef ] - [ 100 50 .undef ] - [ 99 58 .undef ] - [ 97 66 .undef ] - [ 94 74 .undef ] - [ 89 81 .undef ] - [ 83 87 .undef ] - [ 77 92 .undef ] - [ 69 96 .undef ] - [ 62 99 .undef ] - [ 54 100 .undef ] - [ 45 100 .undef ] - [ 37 99 .undef ] - [ 29 96 .undef ] - [ 21 92 .undef ] - [ 15 87 .undef ] - [ 9 81 .undef ] - [ 4 73 .undef ] - [ 1 66 .undef ] - [ 0 58 .undef ] - [ 0 49 .undef ] - [ 0 41 .undef ] - [ 1 33 .undef ] - [ 4 25 .undef ] - [ 9 18 .undef ] - [ 15 12 .undef ] - [ 21 7 .undef ] - [ 29 2 .undef ] - [ 37 0 .undef ] - [ 45 0 .undef ] -] def - -