mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Introduce widget::textTop
This commit is contained in:
@@ -118,6 +118,14 @@ struct rct_widget
|
||||
{
|
||||
return (top + bottom) / 2;
|
||||
}
|
||||
|
||||
int16_t textTop() const
|
||||
{
|
||||
if (height() >= 10)
|
||||
return std::max<int32_t>(top, top + (height() / 2) - 5);
|
||||
else
|
||||
return top - 1;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user