Part of #21421: rename MAX_VIEWPORT_COUNT to kMaxViewportCount

This commit is contained in:
Gustav Burkhardt 2024-04-26 03:11:19 -04:00 committed by GitHub
parent af46ff5f0a
commit 5837a33a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ CoordsXYZ Focus::GetPos() const
void ViewportCreate(WindowBase* w, const ScreenCoordsXY& screenCoords, int32_t width, int32_t height, const Focus& focus)
{
Viewport* viewport = nullptr;
if (_viewports.size() >= MAX_VIEWPORT_COUNT)
if (_viewports.size() >= kMaxViewportCount)
{
LOG_ERROR("No more viewport slots left to allocate.");
return;

View File

@ -114,7 +114,7 @@ struct InteractionInfo
ViewportInteractionItem SpriteType = ViewportInteractionItem::None;
};
#define MAX_VIEWPORT_COUNT WINDOW_LIMIT_MAX
constexpr int32_t kMaxViewportCount = WINDOW_LIMIT_MAX;
/**
* A reference counter for whether something is forcing the grid lines to show. When the counter