Commit 1151abbd authored by Alexandra Panyukova's avatar Alexandra Panyukova

trying to read images less times in bootloader

parent be2332d5
...@@ -204,12 +204,16 @@ ...@@ -204,12 +204,16 @@
% ( ) == > ( ) % ( ) == > ( )
% %
/main.drawmenu { /main.drawmenu {
menu.text.normal setcolor
-18 3 rmoveto "menu_blue.jpg" findfile setimage
0 0 16 16 unpackimage
/menu_blue exch def
"menu_gray.jpg" findfile setimage "menu_gray.jpg" findfile setimage
18 -3 rmoveto 0 0 16 16 unpackimage
/font.selected font.large def /menu_gray exch def
menu.text.normal
menu.text.normal setcolor
/x menu.start.x def /x menu.start.x def
/y menu.start.y def /y menu.start.y def
...@@ -224,6 +228,7 @@ ...@@ -224,6 +228,7 @@
0 1 menu.visible.entries 1 sub { 0 1 menu.visible.entries 1 sub {
x y moveto currentpoint menu.bar.width.old menu.bar.height image x y moveto currentpoint menu.bar.width.old menu.bar.height image
x config.rtl { menu.bar.width menu.text.xofs sub } { menu.text.xofs } ifelse add x config.rtl { menu.bar.width menu.text.xofs sub } { menu.text.xofs } ifelse add
0 0 menu_gray restorescreen
y menu.text.yofs add moveto y menu.text.yofs add moveto
menu.texts exch menu.shift add get menuitemmap menu.texts exch menu.shift add get menuitemmap
currentfont exch font.large setfont show.rtl setfont currentfont exch font.large setfont show.rtl setfont
...@@ -271,14 +276,14 @@ ...@@ -271,14 +276,14 @@
menu.text.yofs rmoveto menu.text.yofs rmoveto
menu.status { menu.status {
-18 3 rmoveto -18 3 rmoveto
"menu_blue.jpg" findfile setimage menu_blue restorescreen
18 -3 rmoveto 18 -3 rmoveto
/font.selected font.large.bold def /font.selected font.large.bold def
menu.text.select menu.text.select
} { } {
-18 3 rmoveto -18 3 rmoveto
"menu_gray.jpg" findfile setimage menu_gray restorescreen
18 -3 rmoveto 18 -3 rmoveto
/font.selected font.large def /font.selected font.large def
menu.text.normal menu.text.normal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment