summaryrefslogtreecommitdiff
path: root/src/screenshot.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-11-17 23:08:55 +0000
committersmatz <smatz@openttd.org>2009-11-17 23:08:55 +0000
commit4eaa558ca119936483c55daf232ece37496eddb4 (patch)
tree4691fa6702a28c3cac0f9a2e710f9b9fe2dde670 /src/screenshot.h
parentd747a643cce2fbf4478d5a2d2c292607dd33f44b (diff)
downloadopenttd-4eaa558ca119936483c55daf232ece37496eddb4.tar.xz
(svn r18155) -Codechange: in MakeScreenshotName(), don't return pointer to local static variable - use global one instead
Diffstat (limited to 'src/screenshot.h')
-rw-r--r--src/screenshot.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/screenshot.h b/src/screenshot.h
index f97be75c9..410ca59a0 100644
--- a/src/screenshot.h
+++ b/src/screenshot.h
@@ -17,10 +17,11 @@ void InitializeScreenshotFormats();
const char *GetScreenshotFormatDesc(int i);
void SetScreenshotFormat(int i);
+/** Type of requested screenshot */
enum ScreenshotType {
- SC_NONE,
- SC_VIEWPORT,
- SC_WORLD
+ SC_NONE, ///< No screenshot requested
+ SC_VIEWPORT, ///< Screenshot of viewport
+ SC_WORLD, ///< World screenshot
};
bool MakeScreenshot();
@@ -30,6 +31,7 @@ bool IsScreenshotRequested();
extern char _screenshot_format_name[8];
extern uint _num_screenshot_formats;
extern uint _cur_screenshot_format;
-extern char _screenshot_name[];
+extern char _screenshot_name[128];
+extern char _full_screenshot_name[MAX_PATH];
#endif /* SCREENSHOT_H */