OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../gfx_func.h"
12 #include "../blitter/factory.hpp"
13 #include "../saveload/saveload.h"
14 #include "../window_func.h"
17 #include "../safeguards.h"
26 _set_error_mode(_OUT_TO_STDERR);
34 _screen.dst_ptr =
nullptr;
38 Debug(misc, 1,
"Forcing blitter 'null'...");
51 for (i = 0; i < this->
ticks; i++) {
void DoExitSave()
Do a save when exiting the game (_settings_client.gui.autosave_on_exit)
bool autosave_on_exit
save an autosave when you quit the game, but do not ask "Do you really want to quit?...
static Blitter * SelectBlitter(const std::string &name)
Find the requested blitter and return its class.
ClientSettings _settings_client
The current settings for this game.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
const char * Start(const StringList ¶m) override
Start this driver.
uint ticks
Amount of ticks to run.
void UpdateWindows()
Update the continuously changing contents of the windows, such as the viewports.
virtual void InputLoop()
Handle input logic, is CTRL pressed, should we fast-forward, etc.
static FVideoDriver_Null iFVideoDriver_Null
Factory for the null video driver.
std::vector< std::string > StringList
Type for a list of strings.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
int GetDriverParamInt(const StringList &parm, const char *name, int def)
Get an integer parameter the list of parameters.
void UpdateAutoResolution()
Apply resolution auto-detection and clamp to sensible defaults.
#define Debug(name, level, format_string,...)
Ouptut a line of debugging information.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
Factory the null video driver.
void Stop() override
Stop this driver.
void MainLoop() override
Perform the actual drawing.
Dimension _cur_resolution
The current resolution.
GUISettings gui
settings related to the GUI