mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: separate TextColour enumeration and flags
This commit is contained in:
@@ -1043,7 +1043,7 @@ protected:
|
||||
y < dpi->top + dpi->height) {
|
||||
|
||||
/* And draw it. */
|
||||
DrawString(x, x + legend_text_width, y, tbl.legend, TC_WHITE, SA_LEFT, false, FontSize::Small);
|
||||
DrawString(x, x + legend_text_width, y, tbl.legend, TextColour::White, SA_LEFT, false, FontSize::Small);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1674,9 +1674,9 @@ public:
|
||||
if (!tbl->show_on_map) {
|
||||
/* Simply draw the string, not the black border of the legend colour.
|
||||
* This will enforce the idea of the disabled item */
|
||||
DrawString(text, GetStringWithArgs(string, params), TC_GREY);
|
||||
DrawString(text, GetStringWithArgs(string, params), TextColour::Grey);
|
||||
} else {
|
||||
DrawString(text, GetStringWithArgs(string, params), TC_BLACK);
|
||||
DrawString(text, GetStringWithArgs(string, params), TextColour::Black);
|
||||
GfxFillRect(icon, PC_BLACK); // Outer border of the legend colour
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user