Codechange: Give ColourShade values names instead of numbers.
This commit is contained in:

committed by
Peter Nelson

parent
ae3390fe48
commit
912d7bd80e
@@ -312,7 +312,7 @@ void LinkGraphOverlay::DrawContent(Point pta, Point ptb, const LinkProperties &c
|
||||
GfxDrawLine(pta.x, pta.y + offset_y, ptb.x, ptb.y + offset_y, colour, width, dash);
|
||||
}
|
||||
|
||||
GfxDrawLine(pta.x, pta.y, ptb.x, ptb.y, GetColourGradient(COLOUR_GREY, SHADE_1), width);
|
||||
GfxDrawLine(pta.x, pta.y, ptb.x, ptb.y, GetColourGradient(COLOUR_GREY, SHADE_DARKEST), width);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -332,8 +332,8 @@ void LinkGraphOverlay::DrawStationDots(const DrawPixelInfo *dpi) const
|
||||
|
||||
LinkGraphOverlay::DrawVertex(pt.x, pt.y, r,
|
||||
GetColourGradient(st->owner != OWNER_NONE ?
|
||||
Company::Get(st->owner)->colour : COLOUR_GREY, SHADE_5),
|
||||
GetColourGradient(COLOUR_GREY, SHADE_1));
|
||||
Company::Get(st->owner)->colour : COLOUR_GREY, SHADE_LIGHT),
|
||||
GetColourGradient(COLOUR_GREY, SHADE_DARKEST));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user