Codechange: Use Rect WithX/WithY in some places.
This commit is contained in:
committed by
Peter Nelson
parent
6d3f39609f
commit
31eec7106b
@@ -62,7 +62,7 @@ public:
|
||||
if (i == WID_TT_TEXT) continue; // Loading and cost/income text has no invisibility button.
|
||||
|
||||
const Rect wr = this->GetWidget<NWidgetBase>(i)->GetCurrentRect().Shrink(WidgetDimensions::scaled.fullbevel);
|
||||
DrawFrameRect(wr.left, fr.top, wr.right, fr.bottom, COLOUR_PALE_GREEN,
|
||||
DrawFrameRect(wr.WithY(fr), COLOUR_PALE_GREEN,
|
||||
HasBit(_invisibility_opt, i - WID_TT_BEGIN) ? FrameFlag::Lowered : FrameFlags{});
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user