MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SetImageScale

Method SetImageScale

LuaSTGPlus/LuaWrapper.cpp:1099–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097 return 2;
1098 }
1099 static int SetImageScale(lua_State* L)LNOEXCEPT
1100 {
1101 float x = static_cast<float>(luaL_checknumber(L, 1));
1102 if (x == 0.f)
1103 return luaL_error(L, "invalid argument #1 for 'SetImageScale'.");
1104 LRES.SetGlobalImageScaleFactor(x);
1105 return 0;
1106 }
1107 static int SetImageState(lua_State* L)LNOEXCEPT
1108 {
1109 ResSprite* p = LRES.FindSprite(luaL_checkstring(L, 1));

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected