Commit 39bbff56 authored by mercury233's avatar mercury233

update normal chat

parent c707a7a0
...@@ -1002,15 +1002,15 @@ void Game::DrawSpec() { ...@@ -1002,15 +1002,15 @@ void Game::DrawSpec() {
continue; continue;
} }
std::wstring msg(chatMsg[i]);
int x = wChat->getRelativePosition().UpperLeftCorner.X; int x = wChat->getRelativePosition().UpperLeftCorner.X;
int y = window_size.Height - 25; int y = window_size.Height - 25;
int maxwidth = 705 * xScale;
if(is_building) { if(is_building) {
msg = SetStaticText(nullptr, 205 * xScale, guiFont, msg.c_str());
x = 810 * xScale; x = 810 * xScale;
maxwidth = 205 * xScale;
} }
std::wstring msg = SetStaticText(nullptr, maxwidth, guiFont, chatMsg[i].c_str());
int w = guiFont->getDimension(msg).Width; int w = guiFont->getDimension(msg).Width;
int h = guiFont->getDimension(msg).Height + 2; int h = guiFont->getDimension(msg).Height + 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment