Skip to content

Commit

Permalink
fix lua windows to allow -1 for position again (centers the window)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 16, 2015
1 parent 81b2efa commit e9043c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lua/LuaWindow.cpp
Expand Up @@ -61,9 +61,9 @@ LuaWindow::LuaWindow(lua_State * l) :
int sizeY = luaL_optinteger(l, 4, 10);

// We should replace this with errors
if (posX < 1)
if (posX < 1 && posX != -1)
posX = 1;
if (posY < 1)
if (posY < 1 && posY != -1)
posY = 1;
if (sizeX < 10)
sizeX = 10;
Expand Down

0 comments on commit e9043c9

Please sign in to comment.