Fix compilation when !ENABLE_UI

This commit is contained in:
David Capello 2023-03-23 14:48:30 -03:00
parent 78de8dfa56
commit 44729b27a7

View File

@ -61,6 +61,7 @@ int Theme_styleMetrics(lua_State* L)
if (!id)
return 0;
#ifdef ENABLE_UI
auto theme = skin::SkinTheme::instance();
if (!theme)
return 0;
@ -87,6 +88,9 @@ int Theme_styleMetrics(lua_State* L)
lua_setfield(L, -2, "border");
return 1;
#else // ENABLE_UI
return 0;
#endif
}
int Theme_get_dimension(lua_State* L)