CShellWindow: use full screen for shell window

This commit is contained in:
2015-05-22 22:28:04 +02:00
parent cd7f4bc79c
commit 9f565a2dd0

View File

@@ -84,9 +84,11 @@ void CShellWindow::exec()
} }
Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]; 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; 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); textBox = new CTextBox(cmd.c_str(), font, CTextBox::BOTTOM, &textBoxPosition);
struct pollfd fds; struct pollfd fds;
fds.fd = fileno(f); fds.fd = fileno(f);