mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 04:37:26 -05:00
Event History Setup: #287
Fix Flicker Bug in Ncurses Printer by casting lls as static int; Further Tweak to NcursesPrinter for responsiveness;
This commit is contained in:
@@ -248,7 +248,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
|
|||||||
|
|
||||||
//run ncurses printer more frequently when no sync to speed up responsiveness of it during no sync period
|
//run ncurses printer more frequently when no sync to speed up responsiveness of it during no sync period
|
||||||
//NOTE: Need to monitor and test this, if responsiveness issues arise, then disable this
|
//NOTE: Need to monitor and test this, if responsiveness issues arise, then disable this
|
||||||
if ( opts->use_ncurses_terminal == 1 && ((t % 600) == 0)) //t maxes out at 1800 (3 times each getFrameSync)
|
if ( opts->use_ncurses_terminal == 1 && ((t % 300) == 0)) //t maxes out at 1800 (6 times each getFrameSync)
|
||||||
ncursesPrinter(opts, state);
|
ncursesPrinter(opts, state);
|
||||||
|
|
||||||
symbol = getSymbol (opts, state, 0);
|
symbol = getSymbol (opts, state, 0);
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ void ncursesOpen (dsd_opts * opts, dsd_state * state)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lls = -1;
|
||||||
|
|
||||||
void
|
void
|
||||||
ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||||
{
|
{
|
||||||
uint8_t idas = 0;
|
uint8_t idas = 0;
|
||||||
int level = 0;
|
int level = 0;
|
||||||
int c = 0;
|
int c = 0;
|
||||||
|
|
||||||
int lls = -1;
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (opts->audio_in_type != 1) //can't run getch/menu when using STDIN -
|
if (opts->audio_in_type != 1) //can't run getch/menu when using STDIN -
|
||||||
|
|||||||
Reference in New Issue
Block a user