mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Fixed the BMFont character coordinate verification code.
--HG-- branch : minor
This commit is contained in:
@@ -249,7 +249,7 @@ void BMFontRasterizer::parseConfig(const std::string &configtext)
|
||||
|
||||
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.");
|
||||
|
||||
if (guessheight)
|
||||
|
||||
Reference in New Issue
Block a user