Index: trunk/src/lua/lua_area.cc
===================================================================
--- trunk/src/lua/lua_area.cc	(revision 490)
+++ trunk/src/lua/lua_area.cc	(revision 491)
@@ -161,5 +161,5 @@
 		}
 	}
-	if (c->y != a->ul.y && c->y != a->lr.y && c->x == a->ul.x + 1 ) c->x = a->ul.x;
+	if (c->y != a->ul.y && c->y != a->lr.y && c->x == a->ul.x + 1 ) c->x = a->lr.x;
 
 
@@ -313,5 +313,5 @@
 {
 	nv::ivec2 c = to_coord( L, 1 );
-	int amount = static_cast< int >( lua_tointeger( L, 1 ) );
+	int amount = static_cast< int >( lua_tointeger( L, 2 ) );
 	nv::ivec2 shift( amount, amount );
 	push_area( L, nv::rectangle( c - shift, c + shift ) );
