Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
988
void NWidgetBase::AdjustPaddingForZoom()
989
{
990
this->padding = ScaleGUITrad(this->uz_padding);
991
}
992
993
/**
994
* Constructor for resizable nested widgets.
Callers
3
SetPadding
Method · 0.95
FinishInitNested
Method · 0.80
ReInitWindow
Function · 0.80
Calls
4
GetCharacterHeight
Function · 0.85
Horizontal
Method · 0.80
Vertical
Method · 0.80
ScaleGUITrad
Function · 0.70
Tested by
no test coverage detected