Merge branch 'master' into jgrpp
# Conflicts: # CMakeLists.txt # bin/ai/CMakeLists.txt # bin/game/CMakeLists.txt # src/ai/ai_info.cpp # src/company_base.h # src/economy.cpp # src/game/game_info.cpp # src/gfx_type.h # src/linkgraph/linkgraph_gui.cpp # src/palette.cpp # src/palette_func.h # src/saveload/saveload.h # src/saveload/vehicle_sl.cpp # src/ship_cmd.cpp # src/train_cmd.cpp # src/vehicle_base.h # src/window.cpp # src/window_func.h
This commit is contained in:
@@ -40,9 +40,9 @@ void DrawSliderWidget(Rect r, int min_value, int max_value, int value, const std
|
||||
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, SHADE_DARK);
|
||||
const uint fill = GetColourGradient(COLOUR_GREY, SHADE_LIGHTER);
|
||||
const uint light = GetColourGradient(COLOUR_GREY, SHADE_LIGHTEST);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user