CShellWindow: use full screen for shell window

Origin commit data
------------------
Commit: 9f565a2dd0
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-22 (Fri, 22 May 2015)
This commit is contained in:
2015-05-22 22:28:04 +02:00
parent 58ab2d52e4
commit 8805f5d07d

View File

@@ -84,9 +84,11 @@ void CShellWindow::exec()
}
Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
unsigned int lines_max = frameBuffer->getScreenHeight() / font->getHeight();
int h_shell = frameBuffer->getScreenHeight(true)-1;
int w_shell = frameBuffer->getScreenWidth(true)-1;
unsigned int lines_max = h_shell / font->getHeight();
list<std::string> lines;
CBox textBoxPosition(frameBuffer->getScreenX(), frameBuffer->getScreenY(), frameBuffer->getScreenWidth(), frameBuffer->getScreenHeight());
CBox textBoxPosition(1, 1, w_shell, h_shell);
textBox = new CTextBox(cmd.c_str(), font, CTextBox::BOTTOM, &textBoxPosition);
struct pollfd fds;
fds.fd = fileno(f);