Qt: show main window normally instead of maximized

Sidenote: The main window size calculations are getting stupid.
It would be better to find out the widget sizes and shift
the splitter up, instead of letting it just take up half of the main window.

Idea and part of the code by Richard Henschel
This commit is contained in:
Pasi Kallinen
2024-12-03 19:52:08 +02:00
parent c434b73e94
commit 53f43ab00b
3 changed files with 5 additions and 5 deletions

View File

@@ -1115,8 +1115,7 @@ void NetHackQtTextWindow::Display(bool block UNUSED)
#endif
int mh = screensize.height()*3/5;
if ( (qt_compact_mode && lines->TotalHeight() > mh) || use_rip ) {
// big, so make it fill
showMaximized();
showNormal();
} else {
move(0, 0);
adjustSize();