From 6cb86c641ff52220aebd21e322a029c996beb99d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 29 Mar 2004 06:32:54 +0000 Subject: Make clearScene() set the _needFullRedraw variable. I think the reason I didn't do this from the start was that BS2 used to call clearScene(), or whatever the function was called back then, between every frame. Nowadays, it simply assumes that each frame will cover the previous one. Anyway, this change prevents the restart/restore dialog from appearing briefly between the two intro cutscene animations. svn-id: r13421 --- sword2/driver/d_draw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sword2/driver/d_draw.cpp b/sword2/driver/d_draw.cpp index 934e82bfde..410696da14 100644 --- a/sword2/driver/d_draw.cpp +++ b/sword2/driver/d_draw.cpp @@ -115,6 +115,7 @@ void Graphics::setRenderLevel(int8 level) { void Graphics::clearScene(void) { memset(_buffer + MENUDEEP * _screenWide, 0, _screenWide * RENDERDEEP); + _needFullRedraw = true; } } // End of namespace Sword2 -- cgit v1.2.3