shellwindow: don't update screen if not necessary

This commit is contained in:
Stefan Seyfried
2015-02-01 20:13:40 +01:00
committed by Jacek Jendrzej
parent 27124e72e1
commit 701cb24f45

View File

@@ -160,7 +160,7 @@ CShellWindow::CShellWindow(const std::string &command, const int _mode, int *res
gettimeofday(&tv,NULL);
now = (uint64_t) tv.tv_usec + (uint64_t)((uint64_t) tv.tv_sec * (uint64_t) 1000000);
if (r < 1 || dirty || lastPaint + 250000 < now) {
if (!ok || (r < 1 && dirty && lastPaint + 250000 < now)) {
textBox->setText(&txt);
textBox->paint();
lastPaint = now;