1. rude
  2. love

Commits

Alex Szpakowski  committed b266b14

love.graphics.printf errors if the wrap limit parameter is negative (resolves issue #706)

  • Participants
  • Parent commits 5cb3fa5
  • Branches default

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Graphics.cpp

View file
  • Ignore whitespace
 	if (currentFont == 0)
 		return;
 
+	if (wrap < 0.0f)
+		throw love::Exception("Horizontal wrap limit cannot be negative.");
+
 	using std::string;
 	using std::vector;