mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 11:15:13 +01:00
Apply code style to context functions
This commit is contained in:
@@ -315,8 +315,8 @@ private:
|
||||
const auto ddWidth = ItemWidth * NumColumns + 3;
|
||||
const auto ddHeight = ItemHeight * NumRows + 3;
|
||||
|
||||
int32_t screenWidth = context_get_width();
|
||||
int32_t screenHeight = context_get_height();
|
||||
int32_t screenWidth = ContextGetWidth();
|
||||
int32_t screenHeight = ContextGetHeight();
|
||||
auto boundedScreenPos = screenPos;
|
||||
if (screenPos.x + ddWidth > screenWidth)
|
||||
boundedScreenPos.x = std::max(0, screenWidth - ddWidth);
|
||||
|
||||
Reference in New Issue
Block a user