From 8435033e08e0a9509cf7fc93b354710b595ae07e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 25 Jan 2010 08:10:48 +0000 Subject: [PATCH] - 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) --- src/m_options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m_options.cpp b/src/m_options.cpp index 5e95f1a5e7..8b49e96ac3 100644 --- a/src/m_options.cpp +++ b/src/m_options.cpp @@ -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) {