From f4bc1c8cb7ecf3b6046de5da4e1924fa2c30f1a5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 21 Mar 2015 15:23:07 +0100 Subject: [PATCH] CShellWindow: reduce window size In some cases screen could be too small and some lines are cutted. --- src/gui/widget/shellwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index 0acbf4728..60ac40d73 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -85,11 +85,11 @@ void CShellWindow::exec() } Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]; - int h_shell = frameBuffer->getScreenHeight(true)-1; - int w_shell = frameBuffer->getScreenWidth(true)-1; + int h_shell = frameBuffer->getScreenHeight(); + int w_shell = frameBuffer->getScreenWidth(); unsigned int lines_max = h_shell / font->getHeight(); list lines; - CBox textBoxPosition(1, 1, w_shell, h_shell); + CBox textBoxPosition(frameBuffer->getScreenX(), frameBuffer->getScreenX(), w_shell, h_shell); textBox = new CTextBox(cmd.c_str(), font, CTextBox::BOTTOM, &textBoxPosition); struct pollfd fds; fds.fd = fileno(f);