Changeset 378 for trunk/src/lua/lua_area.cc
- Timestamp:
- 05/29/15 12:12:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_area.cc
r374 r378 8 8 9 9 #include "nv/lua/lua_raw.hh" 10 #include "nv/stl/string.hh"11 10 #include "nv/core/random.hh" 12 11 … … 325 324 { 326 325 nv::rectangle a = to_area( L, 1 ); 327 std::string s = "("; 328 s += nv::to_string(a.ul.x); 329 s += ","; 330 s += nv::to_string(a.ul.y); 331 s += "x"; 332 s += nv::to_string(a.lr.x); 333 s += ","; 334 s += nv::to_string(a.lr.y); 335 s += ")"; 336 lua_pushstring( L, s.c_str() ); 326 lua_pushfstring( L, "(%d,%dx%d,%d)", a.ul.x, a.ul.y, a.lr.x, a.lr.y ); 337 327 return 1; 338 328 }
Note: See TracChangeset
for help on using the changeset viewer.