1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +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

@@ -55,13 +55,13 @@ bool chat_available()
void chat_open()
{
gChatOpen = true;
_chatTextInputSession = context_start_text_input(_chatCurrentLine, sizeof(_chatCurrentLine));
_chatTextInputSession = ContextStartTextInput(_chatCurrentLine, sizeof(_chatCurrentLine));
}
void chat_close()
{
gChatOpen = false;
context_stop_text_input();
ContextStopTextInput();
}
void chat_toggle()
@@ -99,9 +99,9 @@ void chat_draw(rct_drawpixelinfo* dpi, uint8_t chatBackgroundColor)
}
_chatLeft = 10;
_chatRight = std::min((context_get_width() - 10), CHAT_MAX_WINDOW_WIDTH);
_chatRight = std::min((ContextGetWidth() - 10), CHAT_MAX_WINDOW_WIDTH);
_chatWidth = _chatRight - _chatLeft;
_chatBottom = context_get_height() - 45;
_chatBottom = ContextGetHeight() - 45;
_chatTop = _chatBottom - 10;
char* inputLine = _chatCurrentLine;