Fixed ptsize in love.graphics.newFont() when used with embedded font

This commit is contained in:
rxi
2017-01-23 21:35:05 +00:00
parent 56eb02ec73
commit 995218dbe1
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ fail:
const char *font_initEmbedded(font_t *self, int ptsize) {
#include "font_ttf.h"
return initFont(self, font_ttf, 8);
return initFont(self, font_ttf, ptsize);
}

View File

@@ -14,7 +14,7 @@
int l_font_new(lua_State *L) {
const char *filename;
int ptsize = 12;
int ptsize = 8;
if ( lua_isnoneornil(L, 2) ) {
filename = NULL;
ptsize = luaL_optnumber(L, 1, ptsize);