mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-07 05:38:28 +02:00
Merge branch 'pu/mp' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/mp/tuxbox
Conflicts:
acinclude.m4
src/neutrino.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7f989a3625
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-31 (Fri, 31 Mar 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -339,13 +339,6 @@ AC_ARG_WITH(boxmodel,
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
raspi)
|
||||
if test "$BOXTYPE" = "generic"; then
|
||||
BOXMODEL="$withval"
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
|
||||
;;
|
||||
|
@@ -820,6 +820,7 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
return false;
|
||||
|
||||
int yy = y;
|
||||
bool freeicondata = false;
|
||||
//printf("CFrameBuffer::paintIcon: load %s\n", filename.c_str());fflush(stdout);
|
||||
|
||||
/* we cache and check original name */
|
||||
@@ -904,6 +905,8 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
cache_size += dsize;
|
||||
icon_cache.insert(std::pair <std::string, rawIcon> (filename, tmpIcon));
|
||||
//printf("Cached %s, cache size %d\n", newname.c_str(), cache_size);
|
||||
}else{
|
||||
freeicondata = true;
|
||||
}
|
||||
} else {
|
||||
data = it->second.data;
|
||||
@@ -912,9 +915,13 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
//printf("paintIcon: already cached %s %d x %d\n", newname.c_str(), width, height);
|
||||
}
|
||||
_display:
|
||||
if(!paint)
|
||||
if(!paint){
|
||||
if(freeicondata){
|
||||
free(data);
|
||||
data = NULL;
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
if (h != 0)
|
||||
yy += (h - height) / 2;
|
||||
|
||||
@@ -1383,7 +1390,7 @@ void CFrameBuffer::useBackground(bool ub)
|
||||
useBackgroundPaint = ub;
|
||||
if(!useBackgroundPaint) {
|
||||
delete[] background;
|
||||
background=0;
|
||||
background=NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1406,10 +1413,11 @@ void CFrameBuffer::saveBackgroundImage(void)
|
||||
|
||||
void CFrameBuffer::restoreBackgroundImage(void)
|
||||
{
|
||||
fb_pixel_t * tmp = background;
|
||||
fb_pixel_t * tmp = NULL;
|
||||
|
||||
if (backupBackground != NULL)
|
||||
{
|
||||
tmp = background;
|
||||
background = backupBackground;
|
||||
backupBackground = NULL;
|
||||
}
|
||||
|
@@ -229,9 +229,6 @@ CNeutrinoFonts * neutrinoFonts = NULL;
|
||||
bool parentallocked = false;
|
||||
static char **global_argv;
|
||||
|
||||
/* hack until we have real platform abstraction... */
|
||||
static bool can_deepstandby = false;
|
||||
|
||||
extern const char * locale_real_names[]; /* #include <system/locals_intern.h> */
|
||||
|
||||
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
@@ -2291,7 +2288,6 @@ TIMER_START();
|
||||
#endif
|
||||
|
||||
g_info.hw_caps = get_hwcaps();
|
||||
can_deepstandby = g_info.hw_caps->can_shutdown;
|
||||
|
||||
g_Locale = new CLocaleManager;
|
||||
|
||||
@@ -3911,6 +3907,7 @@ extern bool timer_is_rec;//timermanager.cpp
|
||||
|
||||
void CNeutrinoApp::ExitRun(int can_shutdown)
|
||||
{
|
||||
/* can_shutdown is actually our exit code */
|
||||
printf("[neutrino] %s can_shutdown: %d\n", __func__, can_shutdown);
|
||||
|
||||
bool do_shutdown = true;
|
||||
@@ -4048,6 +4045,16 @@ void CNeutrinoApp::ExitRun(int can_shutdown)
|
||||
}
|
||||
else
|
||||
{
|
||||
delete g_RCInput;
|
||||
my_system("/etc/init.d/rcK");
|
||||
//fan speed
|
||||
if (g_info.hw_caps->has_fan)
|
||||
CFanControlNotifier::setSpeed(0);
|
||||
stop_video();
|
||||
Cleanup();
|
||||
//_exit(0);
|
||||
exit(0);
|
||||
}
|
||||
#endif
|
||||
int leds = 0;
|
||||
int bright = 0;
|
||||
@@ -4094,9 +4101,8 @@ void CNeutrinoApp::ExitRun(int can_shutdown)
|
||||
delete g_RCInput;
|
||||
g_RCInput = NULL;
|
||||
//fan speed
|
||||
if (g_info.hw_caps->has_fan) {
|
||||
if (g_info.hw_caps->has_fan)
|
||||
CFanControlNotifier::setSpeed(0);
|
||||
}
|
||||
//CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_MAINMENU_REBOOT));
|
||||
delete CVFD::getInstance();
|
||||
delete SHTDCNT::getInstance();
|
||||
@@ -4110,9 +4116,6 @@ void CNeutrinoApp::ExitRun(int can_shutdown)
|
||||
#else
|
||||
exit(can_shutdown);
|
||||
#endif
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void CNeutrinoApp::saveEpg(bool cvfd_mode)
|
||||
|
Reference in New Issue
Block a user