ui, revise status line handling

This commit is contained in:
kub 2020-11-12 21:51:35 +01:00
parent ae61303f86
commit 69b7b2641b
5 changed files with 56 additions and 40 deletions

View file

@ -1366,7 +1366,6 @@ void emu_loop(void)
char *notice_msg = NULL;
char fpsbuff[24];
int fskip_cnt = 0;
int statclr_cnt = 4;
fpsbuff[0] = 0;
@ -1415,9 +1414,7 @@ void emu_loop(void)
{
notice_msg_time = 0;
notice_msg = NULL;
/* clear all buffers if multi buffering */
plat_status_msg_clear();
statclr_cnt = 4;
}
else {
int sum = noticeMsg[0] + noticeMsg[1] + noticeMsg[2];
@ -1527,12 +1524,6 @@ void emu_loop(void)
if (!skip && flip_after_sync)
plat_video_flip();
if (!skip && statclr_cnt > 0) {
// clear stat msg area in case of multi buffering
plat_status_msg_clear();
statclr_cnt --;
}
pprof_end(main);
}