(m291) Use newer load-theme function
This commit is contained in:
parent
713a05dc19
commit
ac4acbcab8
|
@ -638,8 +638,7 @@
|
|||
.Screen/y DEI2 [ LIT2 15 -Screen/auto ] DEO
|
||||
.Screen/width DEI2 #0010 SUB2 .Screen/x DEO2
|
||||
[ LIT2 00 "> ] #20 SUB #50 SFT2 ;font/glyphs ADD2 .Screen/addr DEO2
|
||||
DUPr [ LITr -Screen/sprite ] DEOkr
|
||||
DEOr
|
||||
DUPr [ LITr -Screen/sprite ] DEOr
|
||||
.Screen/y DEO2 }
|
||||
( | normal )
|
||||
#0008 .Screen/x DEO2
|
||||
|
@ -653,7 +652,7 @@
|
|||
[ LIT2r 0000 ]
|
||||
&>while ( -- )
|
||||
LDAk #20 SUB #0000 ROT ;font ADD2 LDA STH2
|
||||
ADD2r INC2 LDAk ?&>while
|
||||
ADD2r next-glyph LDAk ?&>while
|
||||
POP2 STH2r JMP2r
|
||||
|
||||
@<draw-uf2-right> ( text* color -- )
|
||||
|
@ -791,13 +790,14 @@
|
|||
@<load-theme> ( -- )
|
||||
;&path .File/name DEO2
|
||||
#0002 .File/length DEO2
|
||||
[ LIT2 -System/debug -System/r ]
|
||||
&l ( -- )
|
||||
;&buf .File/read DEO2
|
||||
;&r .File/read DEO2
|
||||
;&g .File/read DEO2
|
||||
;&b .File/read DEO2
|
||||
[ LIT2 00 -File/success-lb ] DEI EQU ?{
|
||||
[ LIT2r &buf $2 ] STHk DEO2r
|
||||
INC INC NEQk ?&l }
|
||||
POP2 JMP2r
|
||||
[ LIT2 &r $2 ] .System/r DEO2
|
||||
[ LIT2 &g $2 ] .System/g DEO2
|
||||
[ LIT2 &b $2 ] .System/b DEO2 }
|
||||
JMP2r
|
||||
|
||||
&path ".theme $1
|
||||
|
||||
|
|
Loading…
Reference in New Issue