File diff r28811:c7d0936f4cf0 → r28812:d6d9465e39a0
src/widgets/slider.cpp
Show inline comments
 
@@ -41,9 +41,9 @@ void DrawSliderWidget(Rect r, int min_va
 
	int wx1 = r.left  + sw / 2;
 
	int wx2 = r.right - sw / 2;
 
	if (_current_text_dir == TD_RTL) std::swap(wx1, wx2);
 
	const uint shadow = _colour_gradient[COLOUR_GREY][3];
 
	const uint fill = _colour_gradient[COLOUR_GREY][6];
 
	const uint light = _colour_gradient[COLOUR_GREY][7];
 
	const uint shadow = GetColourGradient(COLOUR_GREY, 3);
 
	const uint fill = GetColourGradient(COLOUR_GREY, 6);
 
	const uint light = GetColourGradient(COLOUR_GREY, 7);
 
	const std::vector<Point> wedge{ Point{wx1, r.bottom - ha}, Point{wx2, r.top + ha}, Point{wx2, r.bottom - ha} };
 
	GfxFillPolygon(wedge, fill);
 
	GfxDrawLine(wedge[0].x, wedge[0].y, wedge[2].x, wedge[2].y, light, t);