diff options
author | chai <chaifix@163.com> | 2018-10-15 20:00:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-15 20:00:58 +0800 |
commit | b3b6fbb33d2b974e7e5e538c4ceebdfb24ca7cd1 (patch) | |
tree | b8f9796dbeebb8523a2a57ec898cf1af53d61268 /src/lua/modules/graphics/graphics.cpp | |
parent | aeeb0c08ac1cf1604bb1659b2c13c1a1ed500848 (diff) |
*修改默认字体高度
Diffstat (limited to 'src/lua/modules/graphics/graphics.cpp')
-rw-r--r-- | src/lua/modules/graphics/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/modules/graphics/graphics.cpp b/src/lua/modules/graphics/graphics.cpp index c137420..2963fa9 100644 --- a/src/lua/modules/graphics/graphics.cpp +++ b/src/lua/modules/graphics/graphics.cpp @@ -45,7 +45,7 @@ namespace lua { /* load default font */ Bitmap* bitmap = Bitmap::createBitmap(default_font_bitmap, sizeof(default_font_bitmap)); - TextureFont* tf = TextureFont::createTextureFont(bitmap, Text(Encode::UTF8, default_charset), default_font_split, 18); + TextureFont* tf = TextureFont::createTextureFont(bitmap, Text(Encode::UTF8, default_charset), default_font_split, bitmap->getHeight()); context.defaultFont = tf; delete bitmap; } |