[Commits] [Tuxbox-GIT] Tuxbox-GIT: apps branch master updated. CVS-Final-30-gf120ec1
Tuxbox Sources
Brought to you by:
dbt1
|
From: Carsten S. <tux...@ne...> - 2013-01-17 21:23:26
|
Project "Tuxbox-GIT: apps":
The branch, master has been updated
via f120ec1ab0469b0dc3944adf7c5950c0bbef0832 (commit)
from 01b8bea02569e8109cb8ea147c1ac1bf32680f11 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f120ec1ab0469b0dc3944adf7c5950c0bbef0832
Author: Christian Schuett <Gau...@ho...>
Date: Wed Jan 16 21:29:31 2013 +0100
Neutrino: fix calculating hintbox width
Without the caculating of the max width some hinboxes overflow the
screen size.
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/gui/widget/hintbox.cpp b/tuxbox/neutrino/src/gui/widget/hintbox.cpp
index 3ce2bf7..810de05 100644
--- a/tuxbox/neutrino/src/gui/widget/hintbox.cpp
+++ b/tuxbox/neutrino/src/gui/widget/hintbox.cpp
@@ -38,6 +38,7 @@
#include <global.h>
#include <neutrino.h>
+#include <driver/screen_max.h>
#define HINTBOX_MAX_HEIGHT 420
@@ -105,6 +106,9 @@ CHintBox::CHintBox(const neutrino_locale_t Caption, const char * const Text, con
if (nw > width)
width = nw;
}
+
+ width = w_max(width, SHADOW_OFFSET);
+
window = NULL;
}
-----------------------------------------------------------------------
Summary of changes:
tuxbox/neutrino/src/gui/widget/hintbox.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
--
Tuxbox-GIT: apps
|