ref: e9cfd0479438fa4447efd7de95afa6ccafb06f69
parent: 2daa646557a6bdd1f9fec323c3b7e1a7babd4b0b
author: Mike Swanson <[email protected]>
date: Thu Jul 27 14:52:01 EDT 2017
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.
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -674,8 +674,8 @@
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