0x00495715 @param buffer @ @return width @
| 1796 | // @param buffer @<esi> |
| 1797 | // @return width @<cx> |
| 1798 | static uint16_t getStringWidthNewLined(Font font, const char* buffer) |
| 1799 | { |
| 1800 | uint16_t maxWidth = 0; |
| 1801 | |
| 1802 | for (auto* ptr = buffer; *ptr != '\0'; ++ptr) |
| 1803 | { |
| 1804 | auto [lineWidth, nextLine, nextFont] = getStringWidthOneLine(ptr, font); |
| 1805 | ptr = nextLine; |
| 1806 | font = nextFont; |
| 1807 | maxWidth = std::max(maxWidth, lineWidth); |
| 1808 | } |
| 1809 | return maxWidth; |
| 1810 | } |
| 1811 | |
| 1812 | /** |
| 1813 | * 0x004955BC |
no test coverage detected