mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Really fix PNG screenshots.
git-svn-id: https://svn.eduke32.com/eduke32@2572 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
258c19f411
commit
5b036273c9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue