imageinfo_ni: avoid multiple cs_get_revision() calls; ...

fix small typo


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1100110913
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2017-03-03 19:00:39 +01:00
parent 8c4fdeb73a
commit 39dea4035a
2 changed files with 4 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ void CImageInfoNI::Init(void)
y = getScreenStartY( height ); y = getScreenStartY( height );
systemfs = 0; systemfs = 0;
revision = cs_get_revision();
old_x = 0; old_x = 0;
old_y = 0; old_y = 0;
InfoThread = 0; InfoThread = 0;
@@ -369,7 +370,7 @@ void* CImageInfoNI::InfoProc(void *arg)
void CImageInfoNI::StartInfoThread() void CImageInfoNI::StartInfoThread()
{ {
if(!InfoThread) { if(!InfoThread) {
printf("CImageInfoNI::StartInfoThrea\n"); printf("CImageInfoNI::StartInfoThread\n");
pthread_create (&InfoThread, NULL, InfoProc, (void*) this) ; pthread_create (&InfoThread, NULL, InfoProc, (void*) this) ;
pthread_detach(InfoThread); pthread_detach(InfoThread);
} }
@@ -847,7 +848,7 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy)
*/ */
#ifdef BOXMODEL_CS_HD2 #ifdef BOXMODEL_CS_HD2
int max_bit = 104857600; /* Shiner, Kronos */ int max_bit = 104857600; /* Shiner, Kronos */
if (cs_get_revision() == 9) if (revision == 9)
max_bit = 1073741824; /* Apollo */ max_bit = 1073741824; /* Apollo */
#else #else
int max_bit = 104857600; int max_bit = 104857600;

View File

@@ -109,6 +109,7 @@ class CImageInfoNI : public CMenuTarget
void StopInfoThread(); void StopInfoThread();
int systemfs; int systemfs;
int revision;
int old_x; int old_x;
int old_y; int old_y;