Fixed a conwidth bug involving min(a,b). Whoever did this needs to be injured.

This commit is contained in:
Dan Olson 2000-02-19 20:43:34 +00:00
parent 8d460e7c6f
commit 0cd791223c

View file

@ -431,7 +431,7 @@ void VID_Init(unsigned char *palette)
vid.conwidth = width;
vid.conwidth &= 0xfff8; // make it a multiple of eight
vid.conwidth = min(vid.conwidth, 320);
if(vid.conwidth < 320) vid.conwidth = 320;
// pick a conheight that matches with correct aspect
vid.conheight = vid.conwidth * 3 / 4;