mirror of
https://github.com/love2d/love.git
synced 2026-08-13 09:00:54 +02:00
Fixed love.graphics.printf wrapping when the wrap limit is the same as the text width (issue #558)
This commit is contained in:
@@ -446,7 +446,7 @@ std::vector<std::string> Font::getWrap(const std::string &text, float wrap, int
|
||||
width += getWidth(word);
|
||||
|
||||
// on wordwrap, push line to line buffer and clear string builder
|
||||
if (width >= wrap && oldwidth > 0)
|
||||
if (width > wrap && oldwidth > 0)
|
||||
{
|
||||
int realw = (int) width;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user