From d24f17b88d901b779c81c7434995675eb2a17429 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 12:55:25 +0800 Subject: - Internal:: --- Runtime/Scripting/GUI/Font.bind.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Runtime/Scripting/GUI') diff --git a/Runtime/Scripting/GUI/Font.bind.cpp b/Runtime/Scripting/GUI/Font.bind.cpp index e749303..1928e0e 100644 --- a/Runtime/Scripting/GUI/Font.bind.cpp +++ b/Runtime/Scripting/GUI/Font.bind.cpp @@ -6,6 +6,7 @@ #include "Runtime/GUI/utf8.h" #include "Runtime/Utilities/StaticInitiator.h" #include "Runtime/GUI/UITextMesh.h" +#include "Runtime/Math/Math.h" static std::vector* s_Codepoints; @@ -39,7 +40,7 @@ LUA_BIND_IMPL_METHOD(Font, _New) { const char* path = state.GetValue(1, ""); TextGeneratingSettings setting; - setting.atlasSize = state.GetValue(2, Internal::Vector2(128, 128)); + setting.atlasSize = state.GetValue(2, Vector2(128, 128)); setting.margin = state.GetValue(3, 0); setting.padding = state.GetValue(4, 0); try { @@ -62,7 +63,7 @@ LUA_BIND_IMPL_METHOD(Font, _New) return 1; } TextGeneratingSettings setting; - setting.atlasSize = state.GetValue(2, Internal::Vector2(128, 128)); + setting.atlasSize = state.GetValue(2, Vector2(128, 128)); setting.margin = state.GetValue(3, 0); setting.padding = state.GetValue(4, 0); try { -- cgit v1.1-26-g67d0