diff options
author | truelight <truelight@openttd.org> | 2007-06-17 20:30:28 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-17 20:30:28 +0000 |
commit | 79cd3f5db0deeb4017c75198f3b530c3a2bf0ee3 (patch) | |
tree | e0105857aa1562ca3ca15a5e7df7e49bfc939456 /src/video/null_v.cpp | |
parent | 8c3e9d111f55531f67e8dc132c678d70632f56d9 (diff) | |
download | openttd-79cd3f5db0deeb4017c75198f3b530c3a2bf0ee3.tar.xz |
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
Diffstat (limited to 'src/video/null_v.cpp')
-rw-r--r-- | src/video/null_v.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video/null_v.cpp b/src/video/null_v.cpp index 0c1f4715e..d6afc7af4 100644 --- a/src/video/null_v.cpp +++ b/src/video/null_v.cpp @@ -6,7 +6,7 @@ #include "../variables.h" #include "../window.h" #include "../debug.h" -#include "../blitter/blitter.hpp" +#include "../blitter/factory.hpp" #include "null_v.h" static const char* NullVideoStart(const char* const* parm) @@ -16,8 +16,6 @@ static const char* NullVideoStart(const char* const* parm) /* Do not render, nor blit */ DEBUG(misc, 1, "Forcing blitter 'null'..."); BlitterFactoryBase::SelectBlitter("null"); - _screen.renderer = RendererFactoryBase::SelectRenderer(BlitterFactoryBase::GetCurrentBlitter()->GetRenderer()); - if (_screen.renderer == NULL) error("Couldn't load the renderer '%s' the selected blitter depends on", BlitterFactoryBase::GetCurrentBlitter()->GetRenderer()); return NULL; } |