mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
shellwindow: reduce update interval
This commit is contained in:
committed by
svenhoefer
parent
d372892ef5
commit
edab27be92
@@ -197,7 +197,7 @@ void CShellWindow::exec()
|
|||||||
now = time_monotonic_ms();
|
now = time_monotonic_ms();
|
||||||
if (lines.size() > lines_max)
|
if (lines.size() > lines_max)
|
||||||
lines.pop_front();
|
lines.pop_front();
|
||||||
if (((lines_read >= lines_max) && (lastPaint + 100 < now)) || (lastPaint + 250 < now)) {
|
if (((lines_read >= lines_max) && (lastPaint + 100 < now)) || (lastPaint + 500 < now)) {
|
||||||
txt = lines2txt(lines);
|
txt = lines2txt(lines);
|
||||||
textBox->setText(&txt, textBox->getWindowsPos().iWidth, false);
|
textBox->setText(&txt, textBox->getWindowsPos().iWidth, false);
|
||||||
if (!textBox->isPainted())
|
if (!textBox->isPainted())
|
||||||
@@ -213,7 +213,7 @@ void CShellWindow::exec()
|
|||||||
ok = false;
|
ok = false;
|
||||||
|
|
||||||
now = time_monotonic_ms();
|
now = time_monotonic_ms();
|
||||||
if (!ok || (r < 1 && dirty && lastPaint + 250 < now)) {
|
if (!ok || (r < 1 && dirty && lastPaint + 500 < now)) {
|
||||||
txt = lines2txt(lines);
|
txt = lines2txt(lines);
|
||||||
textBox->setText(&txt, textBox->getWindowsPos().iWidth, false);
|
textBox->setText(&txt, textBox->getWindowsPos().iWidth, false);
|
||||||
if (!textBox->isPainted())
|
if (!textBox->isPainted())
|
||||||
|
Reference in New Issue
Block a user