mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
love.graphics.printf errors if the wrap limit parameter is negative (resolves issue #706)
This commit is contained in:
@@ -714,6 +714,9 @@ void Graphics::printf(const std::string &str, float x, float y, float wrap, Alig
|
||||
if (currentFont == 0)
|
||||
return;
|
||||
|
||||
if (wrap < 0.0f)
|
||||
throw love::Exception("Horizontal wrap limit cannot be negative.");
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user