(svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested.

This commit is contained in:
rubidium
2009-12-19 19:21:37 +00:00
parent 440ab2cf84
commit 0da7a4dc91
6 changed files with 38 additions and 45 deletions

View File

@@ -262,8 +262,7 @@ bool CrashLog::WriteScreenshot(char *filename, const char *filename_last) const
/* Don't draw when we have invalid screen size */
if (_screen.width < 1 || _screen.height < 1 || _screen.dst_ptr == NULL) return false;
RequestScreenshot(SC_RAW, "crash");
bool res = MakeScreenshot();
bool res = MakeScreenshot(SC_RAW, "crash");
if (res) strecpy(filename, _full_screenshot_name, filename_last);
return res;
}