mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-08 22:11:32 +00:00
Move TextureData
This commit is contained in:
parent
225e834b88
commit
69936f3537
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ namespace MWLua
|
||||||
sol::object size = LuaUtil::getFieldOrNil(options, "size");
|
sol::object size = LuaUtil::getFieldOrNil(options, "size");
|
||||||
if (size.is<osg::Vec2f>())
|
if (size.is<osg::Vec2f>())
|
||||||
data.mSize = size.as<osg::Vec2f>();
|
data.mSize = size.as<osg::Vec2f>();
|
||||||
return luaManager->uiResourceManager()->registerTexture(data);
|
return luaManager->uiResourceManager()->registerTexture(std::move(data));
|
||||||
};
|
};
|
||||||
|
|
||||||
api["screenSize"] = []() { return osg::Vec2f(Settings::video().mResolutionX, Settings::video().mResolutionY); };
|
api["screenSize"] = []() { return osg::Vec2f(Settings::video().mResolutionX, Settings::video().mResolutionY); };
|
||||||
|
|
Loading…
Reference in a new issue