feat: autoresize (extend/shrink) canvas element

This commit is contained in:
MihailRis
2025-11-13 18:06:47 +03:00
parent b644a76904
commit 0d4838facf
7 changed files with 52 additions and 17 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ static int p_get_region(UINode* node, lua::State* L) {
static int p_get_data(UINode* node, lua::State* L) {
if (auto canvas = dynamic_cast<Canvas*>(node)) {
return lua::newuserdata<lua::LuaCanvas>(L, canvas->texture(), canvas->data());
return lua::newuserdata<lua::LuaCanvas>(L, canvas->getTexture(), canvas->getData());
}
return 0;
}