aboutsummaryrefslogtreecommitdiff
path: root/gui/console.cpp
diff options
context:
space:
mode:
authorJames Brown2002-12-28 04:51:34 +0000
committerJames Brown2002-12-28 04:51:34 +0000
commit92c8e4ef1ee3bb500685e7eceebcf3df29c8520c (patch)
tree7dad3852d2db379e716eda9092597eee22289c9d /gui/console.cpp
parentae5b30df3d67644f341a30997de5192fed8bcbdc (diff)
downloadscummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.tar.gz
scummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.tar.bz2
scummvm-rg350-92c8e4ef1ee3bb500685e7eceebcf3df29c8520c.zip
Fix NewGui for higher resolutions (eg, CMI)
svn-id: r6216
Diffstat (limited to 'gui/console.cpp')
-rw-r--r--gui/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 97984fd7c4..ce043f26ce 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -47,8 +47,8 @@ This code is not finished, so please don't complain :-)
* - add a scrollbar widget to allow scrolling in the history
* - a *lot* of others things, this code is in no way complete and heavily under progress
*/
-ConsoleDialog::ConsoleDialog(NewGui *gui)
- : Dialog(gui, 0, 0, 320, 12*kLineHeight+2)
+ConsoleDialog::ConsoleDialog(NewGui *gui, int _realWidth)
+ : Dialog(gui, 0, 0, _realWidth, 12*kLineHeight+2)
{
_lineWidth = (_w - kScrollBarWidth - 2) / kCharWidth;
_linesPerPage = (_h - 2) / kLineHeight;