From acc4aa0fc286474d1145ba59715c0dd2b1b8f760 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 3 Jan 2004 21:29:17 +0000 Subject: oops svn-id: r12120 --- scumm/gfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 764e1d70ad..3b3f4a38bd 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -235,7 +235,7 @@ void ScummEngine::getGraphicsPerformance() { initScreens(16, _screenWidth, 144); } -void ScummEngine::initScreens(int a, int b, int w, int h) { +void ScummEngine::initScreens(int b, int w, int h) { int i; for (i = 0; i < 3; i++) { @@ -244,6 +244,8 @@ void ScummEngine::initScreens(int a, int b, int w, int h) { } if (!getResourceAddress(rtBuffer, 4)) { + // Since the size of screen 3 is fixed, there is no need to reallocate it + // if its size changed. if (_version >= 7) { initVirtScreen(3, 0, (_screenHeight / 2) - 10, _screenWidth, 13, false, false); } else { -- cgit v1.2.3