From ecb34b8302bc5598238ab4c359ce4b75d0c34913 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 14 Sep 2010 19:08:21 +0000 Subject: [PATCH] - relaxed conditions for shortening the sliders so that they remain at full size at 800x600. SVN r2771 (trunk) --- src/menu/optionmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/optionmenu.cpp b/src/menu/optionmenu.cpp index 735b674ea..a64f77431 100644 --- a/src/menu/optionmenu.cpp +++ b/src/menu/optionmenu.cpp @@ -79,7 +79,7 @@ void M_DrawSlider (int x, int y, double min, double max, double cur,int fracdigi range = max - min; double ccur = clamp(cur, min, max) - min; - if (CleanXfac > CleanXfac_1) + if (CleanXfac > CleanXfac_1 || CleanXfac_1 * 320 < screen->GetWidth()) { 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 + ((ccur * 78) / range)) * CleanXfac_1), y, "\x13");