Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
etorth committed Nov 12, 2024
1 parent dba0f82 commit 938494e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/gui/friendchatboard/friendchatboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ bool FriendChatBoard::processEventDefault(const SDL_Event &event, bool valid)
const auto fnAdjustW = [this](int dw, bool adjustOff)
{
const int oldW = w();
const int newW = std::max<int>(oldW + dw, UIPage_MIN_WIDTH);
const int newW = std::max<int>(oldW + dw, UIPage_BORDER[2] + UIPage_MIN_WIDTH + UIPage_BORDER[3]);

if(oldW != newW){
setW(newW);
Expand All @@ -966,7 +966,7 @@ bool FriendChatBoard::processEventDefault(const SDL_Event &event, bool valid)
const auto fnAdjustH = [this](int dh, bool adjustOff)
{
const int oldH = h();
const int newH = std::max<int>(oldH + dh, UIPage_MIN_HEIGHT);
const int newH = std::max<int>(oldH + dh, UIPage_BORDER[0] + UIPage_MIN_HEIGHT + UIPage_BORDER[1]);

if(oldH != newH){
setH(newH);
Expand Down

0 comments on commit 938494e

Please sign in to comment.