chore(clang-format-fix): fixing format

This commit is contained in:
Eunchurn Park 2026-01-10 00:04:42 +09:00
parent db5b44d8a7
commit 801429f68c
No known key found for this signature in database
GPG Key ID: 29D94D9C697E3F92

View File

@ -308,8 +308,7 @@ bool TxtReaderActivity::loadPageAtOffset(size_t offset, std::vector<std::string>
// Find break point // Find break point
size_t breakPos = line.length(); size_t breakPos = line.length();
while (breakPos > 0 && while (breakPos > 0 && renderer.getTextWidth(cachedFontId, line.substr(0, breakPos).c_str()) > viewportWidth) {
renderer.getTextWidth(cachedFontId, line.substr(0, breakPos).c_str()) > viewportWidth) {
// Try to break at space // Try to break at space
size_t spacePos = line.rfind(' ', breakPos - 1); size_t spacePos = line.rfind(' ', breakPos - 1);
if (spacePos != std::string::npos && spacePos > 0) { if (spacePos != std::string::npos && spacePos > 0) {