style: Add const to renderer parameter in findBreakPosition

This commit is contained in:
Eunchurn Park 2026-01-18 19:16:03 +09:00
parent 9cd208f8ae
commit 65b09171a6
No known key found for this signature in database
GPG Key ID: 29D94D9C697E3F92

View File

@ -32,7 +32,7 @@ size_t findUtf8Boundary(const std::string& str, size_t pos) {
// Binary search to find max characters that fit in width
// Returns the position (byte offset) where to break the string
size_t findBreakPosition(GfxRenderer& renderer, int fontId, const std::string& line, int maxWidth) {
size_t findBreakPosition(const GfxRenderer& renderer, int fontId, const std::string& line, int maxWidth) {
if (line.empty()) return 0;
// First check if the whole line fits