Remove now-unused INSET_RECT_FLAG_FILL_GREY

This commit is contained in:
Gymnasiast committed 2025-10-18 20:25:29 +02:00
1 parent 0659350577
commit a047154cdf
2 files changed
+1 -13

No files matched your search

-1
View File
@@ -185,7 +185,6 @@ constexpr DrawBlendOp kBlendDst = 2 << 2;
enum
{
INSET_RECT_FLAG_FILL_GREY = (1 << 2), // 0x04
INSET_RECT_FLAG_BORDER_NONE = (1 << 3), // 0x08
INSET_RECT_FLAG_FILL_NONE = (1 << 4), // 0x10
INSET_RECT_FLAG_BORDER_INSET = (1 << 5), // 0x20
+1 -12
View File
@@ -96,14 +96,7 @@ void GfxFillRectInset(RenderTarget& rt, const ScreenRect& rect, ColourWithFlags
{
if (!(flags & INSET_RECT_FLAG_FILL_DONT_LIGHTEN))
{
if (flags & INSET_RECT_FLAG_FILL_GREY)
{
fill = ColourMapA[COLOUR_BLACK].light;
}
else
{
fill = ColourMapA[colour.colour].lighter;
}
fill = ColourMapA[colour.colour].lighter;
}
GfxFillRect(rt, { leftTop + ScreenCoordsXY{ 1, 1 }, rightBottom - ScreenCoordsXY{ 1, 1 } }, fill);
}
@@ -118,10 +111,6 @@ void GfxFillRectInset(RenderTarget& rt, const ScreenRect& rect, ColourWithFlags
if (!(flags & INSET_RECT_FLAG_FILL_NONE))
{
if (flags & INSET_RECT_FLAG_FILL_GREY)
{
fill = ColourMapA[COLOUR_BLACK].light;
}
GfxFillRect(rt, { leftTop + ScreenCoordsXY{ 1, 1 }, rightBottom - ScreenCoordsXY{ 1, 1 } }, fill);
}
}