From ea9abc58c963cd8a4671a85e1551bb9dd18f2b38 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 20 Mar 2012 18:32:16 +0000 Subject: [PATCH] Probably fix sheared PNG screenshots. We shouldn't assume a particular bytes-per-line value and use ylookup[] instead. Specifically, windowed modes on Windows use a frame buffer that always has odd x dimension. git-svn-id: https://svn.eduke32.com/eduke32@2505 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 763dc2225..0b9e892f8 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -15857,9 +15857,8 @@ static int32_t screencapture_png(const char *filename, char inverseit, const cha rowptrs = (png_bytepp)png_malloc(png_ptr, ydim*sizeof(png_bytep)); if (!palette) { - int32_t k = xdim*(1+2*!palette); for (i=0; i