mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed: M_DrawSlider did not print the correct value if the slider's minimum was not 0 or the value was clamped.
SVN r2134 (trunk)
This commit is contained in:
parent
406b692cc9
commit
8435033e08
1 changed files with 2 additions and 2 deletions
|
@ -1560,10 +1560,10 @@ static void M_DrawSlider (int x, int y, double min, double max, double cur,int f
|
|||
double range;
|
||||
|
||||
range = max - min;
|
||||
cur = clamp(cur, min, max) - min;
|
||||
double ccur = clamp(cur, min, max) - min;
|
||||
|
||||
M_DrawConText(CR_WHITE, x, y, "\x10\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x12");
|
||||
M_DrawConText(CR_ORANGE, x + int((5 + ((cur * 78) / range)) * CleanXfac_1), y, "\x13");
|
||||
M_DrawConText(CR_ORANGE, x + int((5 + ((ccur * 78) / range)) * CleanXfac_1), y, "\x13");
|
||||
|
||||
if (fracdigits >= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue