Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use fullscreen by default
Assuming used in, well, finger usable mobile devices where fullscreen
makes most sense.
  • Loading branch information
pvuorela committed May 4, 2016
1 parent 5fc1d99 commit c3a97ce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.cpp
Expand Up @@ -157,13 +157,14 @@ int main(int argc, char *argv[])
QObject::connect(&term,SIGNAL(displayBufferChanged()),win,SLOT(displayBufferChanged()));
QObject::connect(view.engine(),SIGNAL(quit()),&app,SLOT(quit()));

QSize screenSize = QGuiApplication::primaryScreen()->size();
if ((screenSize.width() < 1024 || screenSize.height() < 768 || app.arguments().contains("-fs"))
&& !app.arguments().contains("-nofs"))
{
if (!app.arguments().contains("-nofs")) {
view.showFullScreen();
} else
} else {
QSize screenSize = QGuiApplication::primaryScreen()->size();
view.setWidth(screenSize.width() / 2);
view.setHeight(screenSize.height() / 2);
view.show();
}

PtyIFace ptyiface(pid, socketM, &term,
settings->value("terminal/charset").toString());
Expand Down

0 comments on commit c3a97ce

Please sign in to comment.