add comment on menu canvas change

This commit is contained in:
Eric Wasylishen 2016-02-13 13:10:11 -07:00
parent 55080e0e11
commit 36bb9f835b

View file

@ -701,7 +701,7 @@ void GL_SetCanvas (canvastype newcanvas)
glViewport (glx, gly, glwidth, glheight);
break;
case CANVAS_MENU:
s = q_min((float)glwidth / 640.0, (float)glheight / 200.0);
s = q_min((float)glwidth / 640.0, (float)glheight / 200.0); // ericw -- doubled width to 640 to accommodate long keybindings
s = CLAMP (1.0, scr_menuscale.value, s);
glOrtho (0, 640, 200, 0, -99999, 99999);
glViewport (glx + (glwidth - 320*s) / 2, gly + (glheight - 200*s) / 2, 640*s, 200*s);