neutrino/hintbox: too long texts could exceed screen space

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1819 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-11-05 11:36:30 +00:00
parent 07b82eefce
commit 261094d227

View File

@@ -122,6 +122,11 @@ void CHintBox::init(const char * const Caption, const char * const Text, const i
if (nw > width)
width = nw;
}
/* make sure we don't overflow the usable area */
if (nw > (int)CFrameBuffer::getInstance()->getScreenWidth())
width = CFrameBuffer::getInstance()->getScreenWidth();
window = NULL;
}