mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
shellwindow: don't update screen if not necessary
Origin commit data
------------------
Branch: ni/coolstream
Commit: 701cb24f45
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-01 (Sun, 01 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Jacek Jendrzej
parent
506edd461c
commit
13959a5406
@@ -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;
|
||||
|
Reference in New Issue
Block a user