From 21ce55bc9f19c3c75e20e6dd22e17e98224a9ed6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 20 Sep 2003 01:08:48 +0000 Subject: make console height/width based on a float percentage of the overlay size -> the overlay isn't so tiny anymore in COMI svn-id: r10329 --- gui/console.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gui/console.h') diff --git a/gui/console.h b/gui/console.h index 4af9eafd2e..27db2df681 100644 --- a/gui/console.h +++ b/gui/console.h @@ -72,9 +72,14 @@ protected: int _historySize; int _historyIndex; int _historyLine; + + + float _widthPercent, _heightPercent; + + void reflowLayout(); public: - ConsoleDialog(NewGui *gui, int _realWidth); + ConsoleDialog(NewGui *gui, float widthPercent, float heightPercent); void open(); void drawDialog(); -- cgit v1.2.3