diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sw_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sw_misc.c b/src/sw_misc.c index 38155ff..e98aa82 100644 --- a/src/sw_misc.c +++ b/src/sw_misc.c @@ -83,12 +83,12 @@ void D_ViewChanged (void) d_zrowbytes = vid.width * 2; d_zwidth = vid.width; - d_pix_min = r_refdef.vrect.width / 320; + d_pix_min = r_refdef.vrect.width / 640; if (d_pix_min < 1) d_pix_min = 1; - d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5); - d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5); + d_pix_max = (int)((float)r_refdef.vrect.width / (640.0 / 4.0) + 0.5); + d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 640.0 + 0.5); if (d_pix_max < 1) d_pix_max = 1; |