1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +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

@@ -119,7 +119,7 @@ void InGameConsole::ClearInput()
_consoleCurrentLine[0] = 0;
if (_isOpen)
{
context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine));
ContextStartTextInput(_consoleCurrentLine, sizeof(_consoleCurrentLine));
}
}
@@ -181,7 +181,7 @@ void InGameConsole::Open()
_isOpen = true;
ScrollToEnd();
RefreshCaret();
_consoleTextInputSession = context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine));
_consoleTextInputSession = ContextStartTextInput(_consoleCurrentLine, sizeof(_consoleCurrentLine));
}
void InGameConsole::Close()
@@ -189,7 +189,7 @@ void InGameConsole::Close()
_consoleTextInputSession = nullptr;
_isOpen = false;
Invalidate();
context_stop_text_input();
ContextStopTextInput();
}
void InGameConsole::Hide()
@@ -243,7 +243,7 @@ void InGameConsole::Invalidate() const
void InGameConsole::Update()
{
_consoleTopLeft = { 0, 0 };
_consoleBottomRight = { context_get_width(), 322 };
_consoleBottomRight = { ContextGetWidth(), 322 };
if (_isOpen)
{