mirror of https://github.com/OpenTTD/OpenTTD
(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small
parent
c2ac411e69
commit
0e1ac234d8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue