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
This commit is contained in:
Torbjörn Andersson 2004-03-29 06:32:54 +00:00
parent f5f3ee903d
commit 6cb86c641f

View File

@ -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