Rename CHAT_HISTORY_SIZE to kChatHistorySize

This commit is contained in:
Harry-Hopkinson 2024-04-15 15:28:51 +00:00
parent ba1f066710
commit c264ec1077
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ void ChatDraw(DrawPixelInfo& dpi, uint8_t chatBackgroundColor)
int32_t stringHeight = 0;
// Draw chat history
for (size_t i = 0; i < CHAT_HISTORY_SIZE; i++, screenCoords.y -= stringHeight)
for (size_t i = 0; i < kChatHistorySize; i++, screenCoords.y -= stringHeight)
{
if (i >= _chatHistory.size())
break;
@ -220,7 +220,7 @@ void ChatAddHistory(std::string_view s)
std::string buffer = timeBuffer;
buffer += s;
if (_chatHistory.size() >= CHAT_HISTORY_SIZE)
if (_chatHistory.size() >= kChatHistorySize)
{
_chatHistory.pop_back();
_chatHistoryTime.pop_back();

View File

@ -14,7 +14,7 @@
#include <string_view>
#define CHAT_HISTORY_SIZE 10
constexpr int8_t kChatHistorySize = 10;
#define CHAT_INPUT_SIZE 1024
#define CHAT_MAX_MESSAGE_LENGTH 200
#define CHAT_MAX_WINDOW_WIDTH 600