Browse Source

Fixed the BMFont character coordinate verification code.

--HG--
branch : minor
Alex Szpakowski 10 years ago
parent
commit
37fecf1bd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/font/BMFontRasterizer.cpp

+ 1 - 1
src/modules/font/BMFontRasterizer.cpp

@@ -249,7 +249,7 @@ void BMFontRasterizer::parseConfig(const std::string &configtext)
 
 
 		const image::ImageData *id = images[c.page].get();
 		const image::ImageData *id = images[c.page].get();
 
 
-		if (!id->inside(c.x, c.y) || !id->inside(c.x + c.metrics.width, c.y + c.metrics.height))
+		if (!id->inside(c.x, c.y) || !id->inside(c.x + c.metrics.width - 1, c.y + c.metrics.height - 1))
 			throw love::Exception("Invalid BMFont character coordinates.");
 			throw love::Exception("Invalid BMFont character coordinates.");
 
 
 		if (guessheight)
 		if (guessheight)