shithub: qk1

Download patch

ref: d055c88eb3b78fde7e532fd28025893b5d28fc25
parent: 859247117dcbf5a92b9dcd9fa6754a773c84d932
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Dec 15 11:33:32 EST 2023

particles: pick either fov_x or fov_y (max) when scaling

--- a/d_modech.c
+++ b/d_modech.c
@@ -15,7 +15,7 @@
 	rowbytes = vid.rowbytes;
 	scale_for_mip = max(xscale, yscale);
 
-	d_pix_scale = 90.0 / r_refdef.fov_x;
+	d_pix_scale = 90.0 / max(r_refdef.fov_x, r_refdef.fov_y);
 	d_pix_min = (r_refdef.vrect.width / 320.0) * d_pix_scale;
 	d_pix_max = 0.5 + d_pix_min*4.0;
 	d_pix_max = max(d_pix_max, d_pix_min+1);