| 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)); |
nothing calls this directly
no test coverage detected