OpenTTD Source
20240919-master-gdf0233f4c2
|
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);
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++) {
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?...
ClientSettings _settings_client
The current settings for this game.
bool ToggleFullscreen(bool fullscreen) override
Change the full screen setting.
uint ticks
Amount of ticks to run.
#define Debug(category, level, format_string,...)
Ouptut a line of debugging information.
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::optional< std::string_view > Start(const StringList ¶m) override
Start this 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.
static Blitter * SelectBlitter(const std::string_view name)
Find the requested blitter and return its class.
void UpdateAutoResolution()
Apply resolution auto-detection and clamp to sensible defaults.
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