plugins: don't blit over plugin output every second

This commit is contained in:
Stefan Seyfried
2012-08-14 12:14:41 +02:00
parent 3875af11de
commit e65cfee56f
2 changed files with 9 additions and 2 deletions

View File

@@ -117,8 +117,12 @@ void* CLCD::TimeThread(void *)
CLCD::getInstance()->showTime();
/* hack, just if we missed the blit() somewhere
* this will update the framebuffer once per second */
if (getenv("SPARK_NOBLIT") == NULL)
CFrameBuffer::getInstance()->blit();
if (getenv("SPARK_NOBLIT") == NULL) {
CFrameBuffer *fb = CFrameBuffer::getInstance();
/* plugin start locks the framebuffer... */
if (!fb->Locked())
fb->blit();
}
}
return NULL;
}