Changeset 454 for trunk/src/lua
- Timestamp:
- 07/31/15 20:25:22 (10 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_area.cc
r449 r454 255 255 nv::rectangle* a = to_parea( L, 1 ); 256 256 nv::ivec2* c = to_pcoord( L, 2 ); 257 *c = glm::clamp( *c, a->ul, a->lr );257 *c = nv::math::clamp( *c, a->ul, a->lr ); 258 258 return 0; 259 259 } … … 263 263 nv::rectangle* a = to_parea( L, 1 ); 264 264 nv::ivec2* c = to_pcoord( L, 2 ); 265 push_coord( L, glm::clamp( *c, a->ul, a->lr ) );265 push_coord( L, nv::math::clamp( *c, a->ul, a->lr ) ); 266 266 return 0; 267 267 } -
trunk/src/lua/lua_values.cc
r449 r454 25 25 void* nv::lua::detail::raw_check_userdata( lua_State *L, int index, const char* metatable ) 26 26 { 27 return luaL_ checkudata( L, index, metatable );27 return luaL_testudata( L, index, metatable ); 28 28 } 29 29
Note: See TracChangeset
for help on using the changeset viewer.