diff options
author | rubidium <rubidium@openttd.org> | 2009-12-19 19:21:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-19 19:21:37 +0000 |
commit | a6146f5f516ce08dfb9c5ad62b260ba2e3ae8010 (patch) | |
tree | c9d60cba50de218e9bc3a85a2e140cbb6eb4aa82 /src/crashlog.cpp | |
parent | 29d6491605bb13e7a751b2a1a8b8728f17bbc54b (diff) | |
download | openttd-a6146f5f516ce08dfb9c5ad62b260ba2e3ae8010.tar.xz |
(svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested.
Diffstat (limited to 'src/crashlog.cpp')
-rw-r--r-- | src/crashlog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index 7b0ced062..2dec5ab38 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -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; } |