summaryrefslogtreecommitdiff
path: root/src/video/null_v.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-12-19 18:46:40 +0000
committerfrosch <frosch@openttd.org>2009-12-19 18:46:40 +0000
commit29d6491605bb13e7a751b2a1a8b8728f17bbc54b (patch)
treed36add5885667a83011cef1fdbfe90d5ce548dfd /src/video/null_v.cpp
parent7572f95448308fd19cd91ea1416ddf6320f51247 (diff)
downloadopenttd-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.cpp2
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();
}
}