From 39dea4035a5406e20196c990570447a8c84c5992 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 3 Mar 2017 19:00:39 +0100 Subject: [PATCH] imageinfo_ni: avoid multiple cs_get_revision() calls; ... fix small typo Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1100110913abbf03481eff832d379bfb85a10746 Author: vanhofen Date: 2017-03-03 (Fri, 03 Mar 2017) Origin message was: ------------------ - imageinfo_ni: avoid multiple cs_get_revision() calls; ... fix small typo ------------------ This commit was generated by Migit --- src/gui/imageinfo_ni.cpp | 5 +++-- src/gui/imageinfo_ni.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index ee4d1704c..b33025808 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -115,6 +115,7 @@ void CImageInfoNI::Init(void) y = getScreenStartY( height ); systemfs = 0; + revision = cs_get_revision(); old_x = 0; old_y = 0; InfoThread = 0; @@ -369,7 +370,7 @@ void* CImageInfoNI::InfoProc(void *arg) void CImageInfoNI::StartInfoThread() { if(!InfoThread) { - printf("CImageInfoNI::StartInfoThrea\n"); + printf("CImageInfoNI::StartInfoThread\n"); pthread_create (&InfoThread, NULL, InfoProc, (void*) this) ; pthread_detach(InfoThread); } @@ -847,7 +848,7 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy) */ #ifdef BOXMODEL_CS_HD2 int max_bit = 104857600; /* Shiner, Kronos */ - if (cs_get_revision() == 9) + if (revision == 9) max_bit = 1073741824; /* Apollo */ #else int max_bit = 104857600; diff --git a/src/gui/imageinfo_ni.h b/src/gui/imageinfo_ni.h index c889445d8..2ecd32cca 100644 --- a/src/gui/imageinfo_ni.h +++ b/src/gui/imageinfo_ni.h @@ -109,6 +109,7 @@ class CImageInfoNI : public CMenuTarget void StopInfoThread(); int systemfs; + int revision; int old_x; int old_y;