diff options
author | rubidium <rubidium@openttd.org> | 2010-12-21 10:11:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-21 10:11:11 +0000 |
commit | 0209b1253a7cf7e8bf1a692194f8564365d2348a (patch) | |
tree | 1b87cb3317ca86ac64bd421ee0ceafa0db06f1cc | |
parent | c87404063618293e50b8d7e0f1c85965c0fc8986 (diff) | |
download | openttd-0209b1253a7cf7e8bf1a692194f8564365d2348a.tar.xz |
(svn r21558) -Codechange: add the graphics set and its version to the screenshot metadata as well
-rw-r--r-- | src/screenshot.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 30ae18234..406553875 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -211,6 +211,7 @@ static bool MakeBMPImage(const char *name, ScreenshotCallback *callb, void *user #include "newgrf_config.h" #include "ai/ai_info.hpp" #include "company_base.h" +#include "base_media_base.h" #endif /* PNG_TEXT_SUPPORTED */ static void PNGAPI png_my_error(png_structp png_ptr, png_const_charp message) @@ -279,7 +280,8 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user char buf[2048]; char *p = buf; - p = strecpy(p, "NewGRFS:\n", lastof(buf)); + p += seprintf(p, lastof(buf), "Graphics set: %s (%u)\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version); + p = strecpy(p, "NewGRFs:\n", lastof(buf)); for (const GRFConfig *c = _grfconfig; c != NULL; c = c->next) { p += seprintf(p, lastof(buf), "%08X ", BSWAP32(c->ident.grfid)); p = md5sumToString(p, lastof(buf), c->ident.md5sum); |