Codechange: Use Rect WithX/WithY in some places.
This commit is contained in:
@@ -64,7 +64,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