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
 
@@ -277,7 +277,7 @@ static bool MakePNGImage(const char *nam
 
	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));
0 comments (0 inline, 0 general)