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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user