mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user