aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.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/newgui.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/newgui.cpp')
-rw-r--r--gui/newgui.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 4f1db088bd..901db4d503 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -213,15 +213,16 @@ void NewGui::runLoop()
void NewGui::saveState()
{
+ int sys_height = _system->get_height();
+ int sys_width = _system->get_width();
+
// Backup old cursor
_oldCursorMode = _system->show_mouse(true);
_system->show_overlay();
// TODO - add getHeight & getWidth methods to OSystem.
- _screen = new int16[320 * 240];
- _screenPitch = 320;
-// _screen = new int16[_system->get_width() * _system->get_height()];
-// _screenPitch = _system->get_width();
+ _screen = new int16[sys_width * sys_height];
+ _screenPitch = sys_width;
_system->grab_overlay(_screen, _screenPitch);
_currentKeyDown.keycode = 0;