- strech most windows to full screen

* switchable with existing switch for 'big_windows'
* 'big_windows' default is on
This commit is contained in:
svenhoefer
2013-03-25 09:45:22 +01:00
parent deab17dc25
commit 759966f935
16 changed files with 61 additions and 66 deletions

View File

@@ -38,6 +38,7 @@
#include <global.h>
#include <neutrino.h>
#include <driver/screen_max.h>
#include <unistd.h>
#include <stdio.h>
@@ -372,11 +373,9 @@ void CFileBrowser::commonInit()
selected = 0;
selections.clear();
x = g_settings.screen_StartX + 20;
y = g_settings.screen_StartY + 20;
width = (g_settings.screen_EndX - g_settings.screen_StartX - 40);
height = (g_settings.screen_EndY - g_settings.screen_StartY - 40);
width = frameBuffer->getScreenWidthRel();
height = frameBuffer->getScreenHeightRel();
x = getScreenStartX(width);
theight = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE]->getHeight();
fheight = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getHeight();
@@ -389,6 +388,7 @@ void CFileBrowser::commonInit()
//recalc height
height = theight + listmaxshow * fheight + 2 * foheight;
y = getScreenStartY(height);
m_SMSKeyInput.setTimeout(SMSKEY_TIMEOUT);