tron@2186: /* $Id$ */ tron@2186: tron@2189: #include "../stdafx.h" tron@2189: #include "../openttd.h" tron@2189: #include "../gfx.h" tron@2189: #include "../variables.h" tron@2189: #include "../window.h" truelight@7374: #include "../debug.h" truelight@7433: #include "../blitter/factory.hpp" tron@2189: #include "null_v.h" tron@2171: peter1138@7666: static FVideoDriver_Null iFVideoDriver_Null; peter1138@7666: peter1138@7666: const char *VideoDriver_Null::Start(const char* const *parm) tron@2171: { tron@2171: _screen.width = _screen.pitch = _cur_resolution[0]; tron@2171: _screen.height = _cur_resolution[1]; truelight@7374: /* Do not render, nor blit */ truelight@7374: DEBUG(misc, 1, "Forcing blitter 'null'..."); truelight@7374: BlitterFactoryBase::SelectBlitter("null"); tron@2171: return NULL; tron@2171: } tron@2171: peter1138@7666: void VideoDriver_Null::Stop() { } tron@2171: peter1138@7666: void VideoDriver_Null::MakeDirty(int left, int top, int width, int height) {} tron@2171: peter1138@7666: void VideoDriver_Null::MainLoop() tron@2171: { tron@2171: uint i; tron@2171: tron@2171: for (i = 0; i < 1000; i++) { tron@2171: GameLoop(); truelight@7374: _screen.dst_ptr = NULL; tron@2171: UpdateWindows(); tron@2171: } tron@2171: } tron@2171: peter1138@7666: bool VideoDriver_Null::ChangeResolution(int w, int h) { return false; } tron@2171: peter1138@7666: void VideoDriver_Null::ToggleFullscreen(bool fs) {}