Commit 79fea9ca authored by fallenstardust's avatar fallenstardust

setStaticText微调自动换行

parent 9355d3ab
......@@ -1533,7 +1533,7 @@ std::wstring Game::SetStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth,
if(_height == pos)
pbuffer = 0;
continue;
} else if(_width > 0 && _width + w > cWidth) {
} else if(_width > 0 && _width + w > cWidth * xScale) {
strBuffer[pbuffer++] = L'\n';
_width = 0;
_height++;
......
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