Changeset - r17614:4863c039978a
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-04-30 17:44:12
rubidium@openttd.org
(svn r22388) -Fix: when a game uses a lot of NewGRFs the buffer for storing that information in the PNG is too small
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/screenshot.cpp
Show inline comments
 
@@ -274,13 +274,13 @@ static bool MakePNGImage(const char *nam
 
	memset(text, 0, sizeof(text));
 
	text[0].key = const_cast<char *>("Software");
 
	text[0].text = const_cast<char *>(_openttd_revision);
 
	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));
 
	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);
0 comments (0 inline, 0 general)