| 123 | } |
| 124 | |
| 125 | int CEntryText::GetLinesCountA(uint8_t font, TEXT_ALIGN_TYPE align, uint16_t flags, int width) |
| 126 | { |
| 127 | if (width == 0) |
| 128 | { |
| 129 | width = Width; |
| 130 | } |
| 131 | |
| 132 | auto *info = g_FontManager.GetInfoA(font, GetTextA(), align, flags, width); |
| 133 | int count = 0; |
| 134 | while (info != nullptr) |
| 135 | { |
| 136 | auto *next = info->m_Next; |
| 137 | delete info; |
| 138 | info = next; |
| 139 | count++; |
| 140 | } |
| 141 | |
| 142 | return count; |
| 143 | } |
| 144 | |
| 145 | int CEntryText::GetLinesCountW(uint8_t font, TEXT_ALIGN_TYPE align, uint16_t flags, int width) |
| 146 | { |
no test coverage detected