summaryrefslogtreecommitdiff
path: root/src/video/null_v.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-18 23:32:10 +0000
committerrubidium <rubidium@openttd.org>2008-04-18 23:32:10 +0000
commit15242b17844cff61e870933b7759d729516a33ea (patch)
tree26cf6170dfde6c019047b5cec6220eff0e80bedc /src/video/null_v.cpp
parentdde68e922a58b8ffbdc75a9c46a1cd74b9dd6474 (diff)
downloadopenttd-15242b17844cff61e870933b7759d729516a33ea.tar.xz
(svn r12780) -Fix: the null blitter did segfault.
Diffstat (limited to 'src/video/null_v.cpp')
-rw-r--r--src/video/null_v.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/null_v.cpp b/src/video/null_v.cpp
index f1942a8ae..cc488af11 100644
--- a/src/video/null_v.cpp
+++ b/src/video/null_v.cpp
@@ -15,6 +15,8 @@ const char *VideoDriver_Null::Start(const char* const *parm)
this->ticks = GetDriverParamInt(parm, "ticks", 1000);
_screen.width = _screen.pitch = _cur_resolution[0];
_screen.height = _cur_resolution[1];
+ ScreenSizeChanged();
+
/* Do not render, nor blit */
DEBUG(misc, 1, "Forcing blitter 'null'...");
BlitterFactoryBase::SelectBlitter("null");