diff options
author | chai <chaifix@163.com> | 2018-09-02 10:08:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-02 10:08:58 +0800 |
commit | 3bb587f0d7c471a70683fa7d26939d21968dea98 (patch) | |
tree | 6ef9e75b5159dda0a8d1dc4ef8640be4eacc6343 /src/lua/modules/graphics/graphics.cpp | |
parent | 862763a88f6b4a6cb6c034287c509a91776adf8b (diff) |
*update
Diffstat (limited to 'src/lua/modules/graphics/graphics.cpp')
-rw-r--r-- | src/lua/modules/graphics/graphics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/graphics.cpp b/src/lua/modules/graphics/graphics.cpp index 98a4fef..92168ad 100644 --- a/src/lua/modules/graphics/graphics.cpp +++ b/src/lua/modules/graphics/graphics.cpp @@ -8,6 +8,7 @@ namespace jin { namespace lua { + using namespace jin::graphics; using jin::filesystem::Filesystem; using jin::filesystem::Buffer; @@ -404,7 +405,7 @@ namespace lua exit(1); } fs->read(path, &b); - font->loadb((const unsigned char*)b.data); + font->loadMemory((const unsigned char*)b.data); } proxy->bind(new Ref<Font>(font, JIN_GRAPHICS_FONT)); return 1; @@ -420,7 +421,7 @@ namespace lua #include "lua/resources/font.ttf.h" // load default font context.defaultFont = new Font(); - context.defaultFont->loadb(font_ttf); + context.defaultFont->loadMemory(font_ttf); } context.curFont = context.defaultFont; return 0; |