| 143 | } |
| 144 | |
| 145 | int CEntryText::GetLinesCountW(uint8_t font, TEXT_ALIGN_TYPE align, uint16_t flags, int width) |
| 146 | { |
| 147 | if (width == 0) |
| 148 | { |
| 149 | width = Width; |
| 150 | } |
| 151 | |
| 152 | auto *info = g_FontManager.GetInfoW(font, GetTextW(), align, flags, width); |
| 153 | int count = 0; |
| 154 | while (info != nullptr) |
| 155 | { |
| 156 | auto *next = info->m_Next; |
| 157 | delete info; |
| 158 | info = next; |
| 159 | count++; |
| 160 | } |
| 161 | |
| 162 | return count; |
| 163 | } |
| 164 | |
| 165 | bool CEntryText::Insert(char16_t ch, CGump *gump) |
| 166 | { |
no test coverage detected