foxygit / doom Log in
commit e9cfd0479438fa4447efd7de95afa6ccafb06f69
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Thu Jul 27 18:52:01 2017 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Thu Jul 27 23:30:20 2017 -0700

    WritePCXfile: set hres/vres so the aspect ratio is set to 1:1

    Most software ignores the values, but ffmpeg in particular made
    screenshots look oddly stretched.
---
 src/v_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/v_video.c b/src/v_video.c
index 23c13e1f..7c34fca6 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -674,8 +674,8 @@ void WritePCXfile(char *filename, byte *data,
     pcx->ymin = 0;
     pcx->xmax = SHORT(width-1);
     pcx->ymax = SHORT(height-1);
-    pcx->hres = SHORT(width);
-    pcx->vres = SHORT(height);
+    pcx->hres = SHORT(1);
+    pcx->vres = SHORT(1);
     memset (pcx->palette,0,sizeof(pcx->palette));
     pcx->reserved = 0;                  // PCX spec: reserved byte must be zero
     pcx->color_planes = 1;		// chunky image