mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
-fix crashes
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@995 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -841,11 +841,15 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath)
|
|||||||
|
|
||||||
void CFrameBuffer::getIconSize(const char * const filename, int* width, int *height)
|
void CFrameBuffer::getIconSize(const char * const filename, int* width, int *height)
|
||||||
{
|
{
|
||||||
std::map<std::string, rawIcon>::iterator it;
|
|
||||||
|
|
||||||
*width = 0;
|
*width = 0;
|
||||||
*height = 0;
|
*height = 0;
|
||||||
|
|
||||||
|
if(filename == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
std::map<std::string, rawIcon>::iterator it;
|
||||||
|
|
||||||
|
|
||||||
/* if code ask for size, lets cache it. assume we have enough ram for cache */
|
/* if code ask for size, lets cache it. assume we have enough ram for cache */
|
||||||
/* FIXME offset seems never used in code, always default = 1 ? */
|
/* FIXME offset seems never used in code, always default = 1 ? */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user