Skip to content

Commit

Permalink
fixed chat history position on init
Browse files Browse the repository at this point in the history
  • Loading branch information
XiadaOku committed Jul 19, 2022
1 parent 4034a49 commit d823ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iscreen/i_chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ void iChatInit(void)

iChatHistory = new iChatHistoryScreen;
iChatHistory -> init(x,y + (ICS_BUTTON_SIZE_Y + ICS_DELTA) * 1,ICS_HISTORY_SIZE_X,ICS_HISTORY_SIZE_Y,bcol,bcol);
iChatHistory -> position = std::max(0, message_dispatcher.ListSize - ICS_HISTORY_MAX_MESSAGES);

iChatInput = new iChatInputField;
iChatInput -> init(x,y + ICS_HISTORY_SIZE_Y + ICS_DELTA + (ICS_BUTTON_SIZE_Y + ICS_DELTA) * 1,ICS_HISTORY_SIZE_X,ICS_BUTTON_SIZE_Y,bcol,bcol);
Expand Down

0 comments on commit d823ea6

Please sign in to comment.