diff options
author | frosch <frosch@openttd.org> | 2009-12-19 18:46:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-19 18:46:40 +0000 |
commit | 29d6491605bb13e7a751b2a1a8b8728f17bbc54b (patch) | |
tree | d36add5885667a83011cef1fdbfe90d5ce548dfd /src/video/null_v.cpp | |
parent | 7572f95448308fd19cd91ea1416ddf6320f51247 (diff) | |
download | openttd-29d6491605bb13e7a751b2a1a8b8728f17bbc54b.tar.xz |
(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.
Diffstat (limited to 'src/video/null_v.cpp')
-rw-r--r-- | src/video/null_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/null_v.cpp b/src/video/null_v.cpp index 745d0531d..f7f23c6d6 100644 --- a/src/video/null_v.cpp +++ b/src/video/null_v.cpp @@ -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(); } } |