Some more scale slider tuning.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@713 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Sander van Dijk 2012-09-08 10:48:15 +00:00
parent 12b0d75c05
commit b85eb79407
1 changed files with 3 additions and 3 deletions

View File

@ -988,7 +988,7 @@ void M_AdjustSliders (int dir)
switch (options_cursor)
{
case OPT_SCALE: // console and menu scale
l = ceil(vid.width / 32.0) / 10;
l = ((vid.width + 31) / 32) / 10.0;
f = scr_conscale.value + dir * .1;
if (f < 1) f = 1;
else if(f > l) f = l;
@ -1119,8 +1119,8 @@ void M_Options_Draw (void)
// OPT_SCALE:
M_Print (16, 32 + 8*OPT_SCALE, " Scale");
l = ceil(vid.width / 32.0) / 10;
r = l - 1 > 0 ? (scr_conscale.value - 1) / (l - 1) : 0;
l = (vid.width / 320.0) - 1;
r = l > 0 ? (scr_conscale.value - 1) / l : 0;
M_DrawSlider (220, 32 + 8*OPT_SCALE, r);
// OPT_SCRSIZE: