Really fix PNG screenshots.

git-svn-id: https://svn.eduke32.com/eduke32@2572 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-29 21:30:01 +00:00
parent 258c19f411
commit 5b036273c9

View file

@ -15789,12 +15789,12 @@ static int32_t screencapture_png(const char *filename, char inverseit, const cha
if (!palette)
{
for (i=0; i<ydim; i++)
rowptrs[i] = &buf[ylookup[ydim-i-1]];
rowptrs[i] = &buf[3*xdim*(ydim-i-1)];
}
else
{
for (i=0; i<ydim; i++)
rowptrs[i] = &buf[xdim*i];
rowptrs[i] = &buf[ylookup[i]];
}
png_set_rows(png_ptr, info_ptr, rowptrs);