fix close & osd

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@846 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-10-19 10:02:44 +00:00
parent 32ce98e57d
commit 386afa1245
3 changed files with 5 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ int fh_bmp_load(const char *name,unsigned char **buffer,int* xp,int* yp)
if(tbuffer==NULL)
{
printf("Error: malloc\n");
close(fd);
return (FH_ERROR_MALLOC);
}
unsigned char c1,c2;

View File

@@ -716,6 +716,9 @@ void EventList::paintItem(unsigned int pos, t_channel_id channel_idI)
{
color = COL_MENUCONTENTSELECTED;
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;
if(RADIUS_LARGE)
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0, 0);
}
else if (liststart+pos == current_event )
{

View File

@@ -74,6 +74,7 @@ void CTimerManager::Init(void)
int ret = ioctl(fd, IOC_VFD_GET_WAKEUP, &wk);
if(ret >= 0)
wakeup = ((wk.source == WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/);
close(fd);
}
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
if(wakeup)