mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small
This commit is contained in:
parent
1615b81d64
commit
a61ae330bd
@ -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
Block a user