File diff r25612:9facf21c639c → r25613:0450f3bdfa6e
src/video/null_v.cpp
Show inline comments
 
@@ -7,12 +7,13 @@
 

	
 
/** @file null_v.cpp The video driver that doesn't blit. */
 

	
 
#include "../stdafx.h"
 
#include "../gfx_func.h"
 
#include "../blitter/factory.hpp"
 
#include "../saveload/saveload.h"
 
#include "../window_func.h"
 
#include "null_v.h"
 

	
 
#include "../safeguards.h"
 

	
 
/** Factory for the null video driver. */
 
@@ -49,11 +50,17 @@ void VideoDriver_Null::MainLoop()
 

	
 
	for (i = 0; i < this->ticks; i++) {
 
		::GameLoop();
 
		::InputLoop();
 
		::UpdateWindows();
 
	}
 

	
 
	/* If requested, make a save just before exit. The normal exit-flow is
 
	 * not triggered from this driver, so we have to do this manually. */
 
	if (_settings_client.gui.autosave_on_exit) {
 
		DoExitSave();
 
	}
 
}
 

	
 
bool VideoDriver_Null::ChangeResolution(int w, int h) { return false; }
 

	
 
bool VideoDriver_Null::ToggleFullscreen(bool fs) { return false; }