11#ifndef FSPDS_INFO_H_INCLUDED
22#define FSPDS_INFO_H_INCLUDED
33
4- #define INFO_COUNT 7
4+ #define INFO_COUNT 9
55
66void noprint (u8 r ) {}
77
8- void InfoPrintSeparatorLine (u8 r )
8+ void InfoPrintSeparatorLine ()
99{
10- c_goto (r ,1 );
1110 for (u8 i = 0 ;i < 10 ;i ++ ) iprintf ("---" );
1211}
1312
14- void InfoPrintFileNameLabel (u8 r )
13+ void InfoPrintFileNameLabel ()
1514{
16- c_goto (r ,1 );
1715 iprintf ("File name:" );
1816}
1917
20- void InfoPrintFileNameValue (u8 r )
18+ void InfoPrintFileNameValue ()
2119{
22- c_goto ( r , 2 );
20+ iprintf ( " " );
2321 iprintf (files [7 * CurrentPage + PageSelection ]);
2422}
2523
26- void InfoPrintFramesCount (u8 r )
24+ void InfoPrintFramesCount ()
2725{
28- c_goto (r ,1 );
2926 iprintf ("Frames count: %u" ,ppmHead_FrameCount );
3027}
3128
32- void InfoPrintLockState (u8 r )
29+ void InfoPrintLockState ()
3330{
34- c_goto (r ,1 );
3531 iprintf ("Locked : " );
3632 iprintf (ppmMeta_Lock ?"YES" :"NO " );
3733}
3834
35+ void InfoPrintFramePlaybackSpeed ()
36+ {
37+ iprintf ("Playback Speed : %d" ,ppm_FramePlaybackSpeed );
38+ }
39+
3940void (* InfoLine [INFO_COUNT ])()=
4041{
4142 InfoPrintFileNameLabel ,
@@ -44,19 +45,26 @@ void (*InfoLine[INFO_COUNT])()=
4445 InfoPrintFramesCount ,
4546 InfoPrintSeparatorLine ,
4647 InfoPrintLockState ,
47- InfoPrintSeparatorLine
48+ InfoPrintSeparatorLine ,
49+ InfoPrintFramePlaybackSpeed ,
50+ InfoPrintSeparatorLine ,
4851};
4952
5053u8 InfoScrollPos = 0 ;
5154
5255void InfoDisplay ()
5356{
57+ consoleSetWindow (& consoleFG ,1 ,1 ,30 ,22 );
58+ consoleClear ();
59+ c_goto (0 ,0 );
5460 for (u8 i = 1 ,p = InfoScrollPos ;i < 31 ;i ++ )
5561 {
5662 if (p >=INFO_COUNT )
5763 break ;
5864 InfoLine [p ++ ](i );
65+ iprintf ("\n" );
5966 }
67+ consoleSetWindow (& consoleFG ,0 ,0 ,32 ,24 );
6068}
6169
6270
0 commit comments