aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 2caf5f541e..3e14209fe2 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -54,7 +54,7 @@ void Dialog::setupScreenBuf()
{
// Create _screenBuf if it doesn't already exist
if (!_screenBuf)
- _screenBuf = new byte[320*200];
+ _screenBuf = new byte[g_scumm->_realWidth * g_scumm->_realHeight];
// Draw the fixed parts of the dialog: background and border.
_gui->blendRect(_x, _y, _w, _h, _gui->_bgcolor);