font size fix

This commit is contained in:
p.kosyh 2011-04-14 17:48:08 +00:00
parent 44b6c3ed49
commit ba21b3af94

View file

@ -761,7 +761,7 @@ static int luaB_text_size(lua_State *L) {
return 0;
if (!text) {
w = 0;
h = fnt_height(fn->fnt);
h = fnt_height(fn->fnt) / game_theme.scale;
} else
txt_size(fn->fnt, text, &w, &h);
lua_pushnumber(L, w);