Removed love.window.checkMode (resolves issue #653, invalidates issue #592).

Also fixed love.window.setMode to fail instead of bug out when trying to set a fullscreen mode which is too large for the monitor.
This commit is contained in:
Alex Szpakowski
2013-09-19 18:13:52 -03:00
parent 74f26160da
commit ffe0485173
12 changed files with 60 additions and 125 deletions
+2 -2
View File
@@ -98,9 +98,9 @@ int Physics::newPolygonShape(lua_State *L)
// 3 to 8 (b2_maxPolygonVertices) vertices
int vcount = argc / 2;
if (vcount < 3)
luaL_error(L, "Expected a minimum of 3 vertices, got %d.", vcount);
return luaL_error(L, "Expected a minimum of 3 vertices, got %d.", vcount);
else if (vcount > b2_maxPolygonVertices)
luaL_error(L, "Expected a maximum of %d vertices, got %d.", b2_maxPolygonVertices, vcount);
return luaL_error(L, "Expected a maximum of %d vertices, got %d.", b2_maxPolygonVertices, vcount);
b2PolygonShape *s = new b2PolygonShape();