1
0
Fork 0

(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small

release/1.2
rubidium 2011-04-30 17:44:12 +00:00
parent c2ac411e69
commit 0e1ac234d8
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user
text[0].text_length = strlen(_openttd_revision);
text[0].compression = PNG_TEXT_COMPRESSION_NONE;
char buf[2048];
char buf[8192];
char *p = buf;
p += seprintf(p, lastof(buf), "Graphics set: %s (%u)\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version);
p = strecpy(p, "NewGRFs:\n", lastof(buf));