From d24f17b88d901b779c81c7434995675eb2a17429 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 12:55:25 +0800 Subject: - Internal:: --- Runtime/Scripting/Rendering/Rendering.bind.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Runtime/Scripting/Rendering/Rendering.bind.cpp') diff --git a/Runtime/Scripting/Rendering/Rendering.bind.cpp b/Runtime/Scripting/Rendering/Rendering.bind.cpp index c9332f8..58e95bc 100644 --- a/Runtime/Scripting/Rendering/Rendering.bind.cpp +++ b/Runtime/Scripting/Rendering/Rendering.bind.cpp @@ -4,12 +4,13 @@ #include "Runtime/Graphics/GfxDevice.h" #include "Runtime/GUI/UIQuad.h" #include "Runtime/GUI/UI9Slicing.h" +#include "Runtime/Math/Math.h" // Rendering.DrawUIQuad({}) static int DrawUIQuad(lua_State* L) { LUA_BIND_STATE(L); - Internal::Rect rect = state.GetValue(1, Internal::Rect()); + Rect rect = state.GetValue(1, Rect()); UIQuad quad = UIQuad(rect.x, rect.x + rect.width, rect.y, rect.y + rect.height); quad.Draw(); return 0; -- cgit v1.1-26-g67d0