diff options
Diffstat (limited to 'src/lua/modules/graphics/ttf.cpp')
-rw-r--r-- | src/lua/modules/graphics/ttf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/modules/graphics/ttf.cpp b/src/lua/modules/graphics/ttf.cpp index 19e9e92..3d88a62 100644 --- a/src/lua/modules/graphics/ttf.cpp +++ b/src/lua/modules/graphics/ttf.cpp @@ -28,7 +28,7 @@ namespace lua { Proxy* p = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_TTF); TTF* ttf = p->getObject<TTF>(); - int lineheight = luax_checkinteger(L, 3); + int lineheight = luax_optnumber(L, 3, ttf->getFontSize()); int spacing = luax_optnumber(L, 4, 0); Page* page = nullptr; if (luax_isstring(L, 2)) |