mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-25 13:14:19 +01:00
Codechange: Add ColourShade enum.
This commit is contained in:
committed by
Peter Nelson
parent
0463d4c198
commit
ae3390fe48
@@ -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, 1), width);
|
||||
GfxDrawLine(pta.x, pta.y, ptb.x, ptb.y, GetColourGradient(COLOUR_GREY, SHADE_1), 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, 5),
|
||||
GetColourGradient(COLOUR_GREY, 1));
|
||||
Company::Get(st->owner)->colour : COLOUR_GREY, SHADE_5),
|
||||
GetColourGradient(COLOUR_GREY, SHADE_1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user