mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +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
Origin commit data
------------------
Commit: 261094d227
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-11-05 (Sat, 05 Nov 2011)
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