1
0
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:
Duncan
2022-11-06 20:49:07 +00:00
committed by GitHub
parent 27f3a3a796
commit 482971710d
104 changed files with 557 additions and 558 deletions

View File

@@ -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);