Qt menu hack
Prevent a small inventory menu as the first one shown from forcing all subsequent ones from being the same short height by forcing it to have room for at least 15 lines. Temporary hack until someone figures out why resizing the reused WIN_INVEN isn't working. Does not affect non-inventory menus which get created on demand and destroyed when done so don't need to change size to fit different contents.
This commit is contained in:
+2
-1
@@ -99,7 +99,8 @@ void NetHackQtWindow::Display(bool block UNUSED) { puts("unexpected Display"); }
|
||||
bool NetHackQtWindow::Destroy() { return true; }
|
||||
void NetHackQtWindow::CursorTo(int x UNUSED,int y UNUSED) { puts("unexpected CursorTo"); }
|
||||
void NetHackQtWindow::PutStr(int attr UNUSED, const QString& text UNUSED) { puts("unexpected PutStr"); }
|
||||
void NetHackQtWindow::StartMenu() { puts("unexpected StartMenu"); }
|
||||
void NetHackQtWindow::StartMenu(bool using_WIN_INVEN UNUSED)
|
||||
{ puts("unexpected StartMenu"); }
|
||||
void NetHackQtWindow::AddMenu(int glyph UNUSED, const ANY_P* identifier UNUSED,
|
||||
char ch UNUSED, char gch UNUSED, int attr UNUSED,
|
||||
const QString& str UNUSED, unsigned itemflags UNUSED)
|
||||
|
||||
Reference in New Issue
Block a user