From 9f565a2dd0584560bde1924913ce1da99b2bdac1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 22 May 2015 22:28:04 +0200 Subject: [PATCH] CShellWindow: use full screen for shell window --- src/gui/widget/shellwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index a414aeaa7..f42682d70 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -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 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);