(m291) Fixed path redraw
This commit is contained in:
parent
9476c5de87
commit
f34b972602
|
@ -276,17 +276,20 @@
|
|||
#0005 ADD2 LDAk [ LIT ". ] EQU ?&hidden
|
||||
is-folder ?&folder
|
||||
is-mp3 ?&mp3
|
||||
;mem/misc [ LIT2 00 -lines/misc ] LDZ ( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
;mem/misc [ LIT2 00 -lines/misc ] LDZ
|
||||
( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
.lines/misc LDZ INC .lines/misc STZ
|
||||
JMP2r
|
||||
|
||||
&folder ( line* -- )
|
||||
;mem/folders [ LIT2 00 -lines/folders ] LDZ ( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
;mem/folders [ LIT2 00 -lines/folders ] LDZ
|
||||
( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
.lines/folders LDZ INC .lines/folders STZ
|
||||
JMP2r
|
||||
|
||||
&mp3 ( line* -- )
|
||||
;mem/tracks [ LIT2 00 -lines/tracks ] LDZ ( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
;mem/tracks [ LIT2 00 -lines/tracks ] LDZ
|
||||
( CELLSIZE ) #60 SFT2 ADD2 <lcpy>
|
||||
.lines/tracks LDZ INC .lines/tracks STZ
|
||||
JMP2r
|
||||
|
||||
|
@ -312,19 +315,24 @@
|
|||
POP JMP2r
|
||||
|
||||
&tracks ( id -- )
|
||||
#00 SWP ( CELLSIZE ) #60 SFT2 ;mem/tracks ADD2 !<send-load>
|
||||
#00 SWP
|
||||
( CELLSIZE ) #60 SFT2 ;mem/tracks ADD2 !<send-load>
|
||||
|
||||
&misc ( id -- )
|
||||
#00 SWP ( CELLSIZE ) #60 SFT2 ;mem/misc ADD2 !<send-load>
|
||||
#00 SWP
|
||||
( CELLSIZE ) #60 SFT2 ;mem/misc ADD2 !<send-load>
|
||||
|
||||
&folder ( id -- )
|
||||
#00 SWP ( CELLSIZE ) #60 SFT2 ;mem/folders ADD2 !<enter>
|
||||
#00 SWP
|
||||
( CELLSIZE ) #60 SFT2 ;mem/folders ADD2 !<enter>
|
||||
|
||||
@<send-load> ( file* -- )
|
||||
( | start ID3 )
|
||||
;dict/no-title ;id3/title <scpy>
|
||||
;dict/no-artist ;id3/artist <scpy>
|
||||
;dict/no-album ;id3/album <scpy>
|
||||
[ LIT2 01 -playing ] STZ
|
||||
fit-window
|
||||
( | request )
|
||||
;dict/load-cmd <pstr>
|
||||
;path <pstr>
|
||||
|
@ -417,13 +425,7 @@
|
|||
#0018 [ LIT2 00 -playing ] LDZ EQU ?{ #0080 ADD2 }
|
||||
.Screen/y DEO2
|
||||
[ LIT2 80 -Screen/pixel ] DEO
|
||||
( | status )
|
||||
#0008 .Screen/x DEO2
|
||||
#0004 .Screen/y DEO2
|
||||
;path #01 <draw-uf2>
|
||||
( | spacer )
|
||||
#0014 .Screen/y DEO2
|
||||
;line-icn <draw-spacer>
|
||||
<draw-path>
|
||||
( | content )
|
||||
#001c [ LIT2 00 -playing ] LDZ EQU ?{ #0080 ADD2 }
|
||||
.Screen/y DEO2
|
||||
|
@ -439,6 +441,19 @@
|
|||
;mem/misc .lines/misc LDZ #00 .selection LDZ !<draw-list> }
|
||||
JMP2r
|
||||
|
||||
@<draw-path> ( -- )
|
||||
( | clear )
|
||||
#0000 .Screen/x DEO2
|
||||
#0014 .Screen/y DEO2
|
||||
[ LIT2 a0 -Screen/pixel ] DEO
|
||||
( | draw )
|
||||
#0008 .Screen/x DEO2
|
||||
#0004 .Screen/y DEO2
|
||||
;path #01 <draw-uf2>
|
||||
( | spacer )
|
||||
#0014 .Screen/y DEO2
|
||||
;line-icn !<draw-spacer>
|
||||
|
||||
@<redraw-player> ( -- )
|
||||
#ffff ;<draw-timestamp>/last STA2
|
||||
#ffff ;<draw-progress>/last STA2
|
||||
|
@ -605,7 +620,8 @@
|
|||
.Screen/y DEO2 }
|
||||
( | normal )
|
||||
#0008 .Screen/x DEO2
|
||||
#00 OVR ( CELLSIZE ) #60 SFT2 [ LIT2 &t $2 ] ADD2 STHr <draw-uf2>
|
||||
#00 OVR
|
||||
( CELLSIZE ) #60 SFT2 [ LIT2 &t $2 ] ADD2 STHr <draw-uf2>
|
||||
.Screen/y DEI2k #0010 ADD2 ROT DEO2
|
||||
INC GTHk ?&>l
|
||||
POP2 JMP2r
|
||||
|
|
Loading…
Reference in New Issue