mirror of https://github.com/OpenTTD/OpenTTD
Codefix: NWidgetStacked::AdjustPaddingForZoom duplicates inherited method. (#13135)
parent
568bb1f5da
commit
30bda88e97
|
@ -1237,14 +1237,6 @@ NWidgetStacked::NWidgetStacked(WidgetID index) : NWidgetContainer(NWID_SELECTION
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void NWidgetStacked::AdjustPaddingForZoom()
|
|
||||||
{
|
|
||||||
for (const auto &child_wid : this->children) {
|
|
||||||
child_wid->AdjustPaddingForZoom();
|
|
||||||
}
|
|
||||||
NWidgetContainer::AdjustPaddingForZoom();
|
|
||||||
}
|
|
||||||
|
|
||||||
void NWidgetStacked::SetupSmallestSize(Window *w)
|
void NWidgetStacked::SetupSmallestSize(Window *w)
|
||||||
{
|
{
|
||||||
/* Zero size plane selected */
|
/* Zero size plane selected */
|
||||||
|
|
|
@ -499,7 +499,6 @@ class NWidgetStacked : public NWidgetContainer {
|
||||||
public:
|
public:
|
||||||
NWidgetStacked(WidgetID index);
|
NWidgetStacked(WidgetID index);
|
||||||
|
|
||||||
void AdjustPaddingForZoom() override;
|
|
||||||
void SetupSmallestSize(Window *w) override;
|
void SetupSmallestSize(Window *w) override;
|
||||||
void AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool rtl) override;
|
void AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool rtl) override;
|
||||||
void FillWidgetLookup(WidgetLookup &widget_lookup) override;
|
void FillWidgetLookup(WidgetLookup &widget_lookup) override;
|
||||||
|
|
Loading…
Reference in New Issue