| 20 | static FVideoDriver_Null iFVideoDriver_Null; |
| 21 | |
| 22 | std::optional<std::string_view> VideoDriver_Null::Start(const StringList &parm) |
| 23 | { |
| 24 | #ifdef _MSC_VER |
| 25 | /* Disable the MSVC assertion message box. */ |
| 26 | _set_error_mode(_OUT_TO_STDERR); |
| 27 | _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE); |
| 28 | _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); |
| 29 | #endif |
| 30 | |
| 31 | this->UpdateAutoResolution(); |
| 32 | |
| 33 | this->ticks = GetDriverParamInt(parm, "ticks", 1000); |
| 34 | _screen.width = _screen.pitch = _cur_resolution.width; |
| 35 | _screen.height = _cur_resolution.height; |
| 36 | _screen.dst_ptr = nullptr; |
| 37 | ScreenSizeChanged(); |
| 38 | |
| 39 | /* Do not render, nor blit */ |
| 40 | Debug(misc, 1, "Forcing blitter 'null'..."); |
| 41 | BlitterFactory::SelectBlitter("null"); |
| 42 | return std::nullopt; |
| 43 | } |
| 44 | |
| 45 | void VideoDriver_Null::Stop() { } |
| 46 |
nothing calls this directly
no test coverage detected