(svn r23119) -Fix: [Win32] Don't show a crash/assertion message box for a GUI-less video driver.

This commit is contained in:
michi_cc
2011-11-04 23:47:00 +00:00
parent 65d0d19b16
commit 6a2735d24e
3 changed files with 12 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ static FVideoDriver_Null iFVideoDriver_Null;
const char *VideoDriver_Null::Start(const char * const *parm)
{
#ifdef _MSC_VER
/* Disable the MSVC assertion message box. */
_set_error_mode(_OUT_TO_STDERR);
#endif
this->ticks = GetDriverParamInt(parm, "ticks", 1000);
_screen.width = _screen.pitch = _cur_resolution.width;
_screen.height = _cur_resolution.height;