(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.

This commit is contained in:
frosch
2009-12-19 18:46:40 +00:00
parent 7572f95448
commit 29d6491605
6 changed files with 6 additions and 11 deletions

View File

@@ -21,6 +21,7 @@ const char *VideoDriver_Null::Start(const char * const *parm)
this->ticks = GetDriverParamInt(parm, "ticks", 1000);
_screen.width = _screen.pitch = _cur_resolution.width;
_screen.height = _cur_resolution.height;
_screen.dst_ptr = NULL;
ScreenSizeChanged();
/* Do not render, nor blit */
@@ -39,7 +40,6 @@ void VideoDriver_Null::MainLoop()
for (i = 0; i < this->ticks; i++) {
GameLoop();
_screen.dst_ptr = NULL;
UpdateWindows();
}
}