Fixed ptsize in love.graphics.newFont() when used with embedded font
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user