From 901b7cbd38852503188e3369cecfb3c4156f732f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 22 Feb 2013 16:21:24 +0100 Subject: [PATCH] channellist: use "classic" width if minitv is unused --- src/gui/channellist.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 19aa4d195..1e9d4eba2 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -486,9 +486,13 @@ void CChannelList::calcSize() if (g_settings.channellist_additional) width = full_width / 3 * 2; else + { + /* don't use 100% of screen if additional info / minitv is not used */ + full_width = full_width * 76 / 99; /* same width as the old code with my settings :-) */ width = full_width; + } - height = h_max ((frameBuffer->getScreenHeight() / 20 * 17), 0); + height = h_max ((frameBuffer->getScreenHeight() / 20 * 16), 0); x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - full_width) / 2; if (x < ConnectLineBox_Width)