diff options
Diffstat (limited to 'examples/pong/main.lua')
| -rw-r--r-- | examples/pong/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pong/main.lua b/examples/pong/main.lua index fc8cd75..f898ce3 100644 --- a/examples/pong/main.lua +++ b/examples/pong/main.lua @@ -127,6 +127,6 @@ function RL.draw() -- Draw score. RL.DrawText( tostring( playerLeft.score ), { 50, 10 }, 40, RL.WHITE ) - local rightTextSize = Vec2:new( RL.MeasureText( RL.GetFontDefault(), tostring( playerRight.score ), 40, 2 ) ) + local rightTextSize = Vec2:new( RL.MeasureTextEx( RL.GetFontDefault(), tostring( playerRight.score ), 40, 2 ) ) RL.DrawText( tostring( playerRight.score ), { winSize.x - 50 - rightTextSize.x, 10 }, 40, RL.WHITE ) end |
