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);
27 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
28 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
36 _screen.dst_ptr =
nullptr;
40 Debug(misc, 1,
"Forcing blitter 'null'...");
53 for (i = 0; i < this->
ticks; i++) {
static Blitter * SelectBlitter(const std::string_view name)
Find the requested blitter and return its class.
Factory the null video driver.
uint ticks
Amount of ticks to run.
void Stop() override
Stop this driver.
void MainLoop() override
Perform the actual drawing.
bool ChangeResolution(int w, int h) override
Change the resolution of the window.
void MakeDirty(int left, int top, int width, int height) override
Mark a particular area dirty.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
virtual void InputLoop()
Handle input logic, is CTRL pressed, should we fast-forward, etc.
void UpdateAutoResolution()
Apply resolution auto-detection and clamp to sensible defaults.
#define Debug(category, level, format_string,...)
Ouptut a line of debugging information.
int GetDriverParamInt(const StringList &parm, const char *name, int def)
Get an integer parameter the list of parameters.
Dimension _cur_resolution
The current resolution.
void UpdateWindows()
Update the continuously changing contents of the windows, such as the viewports.
static FVideoDriver_Null iFVideoDriver_Null
Factory for the null video driver.
Base of the video driver that doesn't blit.
void DoExitSave()
Do a save when exiting the game (_settings_client.gui.autosave_on_exit)
ClientSettings _settings_client
The current settings for this game.
std::vector< std::string > StringList
Type for a list of strings.
GUISettings gui
settings related to the GUI
bool autosave_on_exit
save an autosave when you quit the game, but do not ask "Do you really want to quit?...