shellwindow: reduce update interval

This commit is contained in:
Stefan Seyfried
2017-01-29 21:27:45 +01:00
committed by svenhoefer
parent d372892ef5
commit edab27be92

View File

@@ -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())