Skip to content

Commit 50dcc62

Browse files
committed
Get Character using char top, right and bottom
1 parent 1ae0cfc commit 50dcc62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/bitmaptext/static/BitmapText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ var BitmapText = new Class({
713713
{
714714
var char = chars[i];
715715

716-
tempRect.setTo(char.x, char.y, char.w, char.h);
716+
tempRect.setTo(char.x, char.t, char.r - char.x, char.b);
717717

718718
if (tempRect.contains(point.x, point.y))
719719
{

0 commit comments

Comments
 (0)