mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
neutrino: fix crashes on invalid fonts
with the latest fontrenderer fix, invalid fonts now can lead to
division by zero errors. fix the occurences I found.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@43 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 83d7657b9d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-13 (Sun, 13 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -552,6 +552,8 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int
|
||||
radius = dy;
|
||||
if (radius > 540)
|
||||
radius = 540;
|
||||
if (radius < 1) /* dx or dy = 0... */
|
||||
radius = 1; /* avoid div by zero below */
|
||||
|
||||
scf = (540 * MUL) / radius;
|
||||
|
||||
|
Reference in New Issue
Block a user