Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #include "../stdafx.h"
00013 #include "../gfx_func.h"
00014 #include "../blitter/factory.hpp"
00015 #include "null_v.h"
00016
00017 static FVideoDriver_Null iFVideoDriver_Null;
00018
00019 const char *VideoDriver_Null::Start(const char * const *parm)
00020 {
00021 this->ticks = GetDriverParamInt(parm, "ticks", 1000);
00022 _screen.width = _screen.pitch = _cur_resolution.width;
00023 _screen.height = _cur_resolution.height;
00024 _screen.dst_ptr = NULL;
00025 ScreenSizeChanged();
00026
00027
00028 DEBUG(misc, 1, "Forcing blitter 'null'...");
00029 BlitterFactoryBase::SelectBlitter("null");
00030 return NULL;
00031 }
00032
00033 void VideoDriver_Null::Stop() { }
00034
00035 void VideoDriver_Null::MakeDirty(int left, int top, int width, int height) {}
00036
00037 void VideoDriver_Null::MainLoop()
00038 {
00039 uint i;
00040
00041 for (i = 0; i < this->ticks; i++) {
00042 GameLoop();
00043 UpdateWindows();
00044 }
00045 }
00046
00047 bool VideoDriver_Null::ChangeResolution(int w, int h) { return false; }
00048
00049 bool VideoDriver_Null::ToggleFullscreen(bool fs) { return false; }