mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user