MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AdjustPaddingForZoom

Method AdjustPaddingForZoom

src/widget.cpp:988–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988void NWidgetBase::AdjustPaddingForZoom()
989{
990 this->padding = ScaleGUITrad(this->uz_padding);
991}
992
993/**
994 * Constructor for resizable nested widgets.

Callers 3

SetPaddingMethod · 0.95
FinishInitNestedMethod · 0.80
ReInitWindowFunction · 0.80

Calls 4

GetCharacterHeightFunction · 0.85
HorizontalMethod · 0.80
VerticalMethod · 0.80
ScaleGUITradFunction · 0.70

Tested by

no test coverage detected