mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +00:00
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:
parent
12b0d75c05
commit
b85eb79407
1 changed files with 3 additions and 3 deletions
|
@ -988,7 +988,7 @@ void M_AdjustSliders (int dir)
|
||||||
switch (options_cursor)
|
switch (options_cursor)
|
||||||
{
|
{
|
||||||
case OPT_SCALE: // console and menu scale
|
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;
|
f = scr_conscale.value + dir * .1;
|
||||||
if (f < 1) f = 1;
|
if (f < 1) f = 1;
|
||||||
else if(f > l) f = l;
|
else if(f > l) f = l;
|
||||||
|
@ -1119,8 +1119,8 @@ void M_Options_Draw (void)
|
||||||
|
|
||||||
// OPT_SCALE:
|
// OPT_SCALE:
|
||||||
M_Print (16, 32 + 8*OPT_SCALE, " Scale");
|
M_Print (16, 32 + 8*OPT_SCALE, " Scale");
|
||||||
l = ceil(vid.width / 32.0) / 10;
|
l = (vid.width / 320.0) - 1;
|
||||||
r = l - 1 > 0 ? (scr_conscale.value - 1) / (l - 1) : 0;
|
r = l > 0 ? (scr_conscale.value - 1) / l : 0;
|
||||||
M_DrawSlider (220, 32 + 8*OPT_SCALE, r);
|
M_DrawSlider (220, 32 + 8*OPT_SCALE, r);
|
||||||
|
|
||||||
// OPT_SCRSIZE:
|
// OPT_SCRSIZE:
|
||||||
|
|
Loading…
Reference in a new issue