Skip to content

Commit

Permalink
centered chat
Browse files Browse the repository at this point in the history
  • Loading branch information
XiadaOku committed Jul 19, 2022
1 parent d823ea6 commit b3c54de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/iscreen/i_chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ void iChatInit(void)
int x,y,sx,sy,bsx,col0,col1,bcol;
iChatButton* p;

sx = ICS_HISTORY_SIZE_X + ICS_DELTA + ICS_BUTTON_SIZE_X + (XGR_MAXX - 800);
sy = ICS_HISTORY_SIZE_Y + ICS_DELTA * 2 + ICS_BUTTON_SIZE_Y * 2 + (XGR_MAXY - 600);
sx = ICS_HISTORY_SIZE_X + ICS_DELTA + ICS_BUTTON_SIZE_X;
sy = ICS_HISTORY_SIZE_Y + ICS_DELTA * 2 + ICS_BUTTON_SIZE_Y * 2;

// bsx = (sx - ICS_DELTA * 2) / 3;
bsx = (ICS_HISTORY_SIZE_X - ICS_DELTA * 2) / 3;
Expand All @@ -481,6 +481,8 @@ void iChatInit(void)
bcol = ICS_BORDER_COLOR;
else {
y -= 30;
x -= (XGR_MAXX - 800) / 2;
y -= (XGR_MAXY - 600) / 2;
bcol = ICS_iBORDER_COLOR;
}

Expand Down

0 comments on commit b3c54de

Please sign in to comment.