Permalink
Browse files

fix lua windows to allow -1 for position again (centers the window)

  • Loading branch information...
jacob1 committed Sep 16, 2015
1 parent 81b2efa commit e9043c93aaf902638be2deca5ea0dc43633f5957
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lua/LuaWindow.cpp
@@ -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;

0 comments on commit e9043c9

Please sign in to comment.