Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUItext.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | if (_to == _from && textChunk.m_From == textChunk.m_To) | ||||
// through the text-calls without having to | // through the text-calls without having to | ||||
// complex the structure virtually for nothing more. | // complex the structure virtually for nothing more. | ||||
SGUIText::STextCall TextCall; | SGUIText::STextCall TextCall; | ||||
// Also add it to the sprites being rendered. | // Also add it to the sprites being rendered. | ||||
SGUIText::SSpriteCall SpriteCall; | SGUIText::SSpriteCall SpriteCall; | ||||
// Get Icon from icon database in pGUI | // Get Icon from icon database in pGUI | ||||
SGUIIcon icon = pGUI->GetIcon(path); | const SGUIIcon& icon = pGUI->GetIcon(path); | ||||
CSize size = icon.m_Size; | const CSize& size = icon.m_Size; | ||||
// append width, and make maximum height the height. | // append width, and make maximum height the height. | ||||
Feedback.m_Size.cx += size.cx; | Feedback.m_Size.cx += size.cx; | ||||
Feedback.m_Size.cy = std::max(Feedback.m_Size.cy, size.cy); | Feedback.m_Size.cy = std::max(Feedback.m_Size.cy, size.cy); | ||||
// These are also needed later | // These are also needed later | ||||
TextCall.m_Size = size; | TextCall.m_Size = size; | ||||
SpriteCall.m_Area = size; | SpriteCall.m_Area = size; | ||||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator