fix lua windows to allow -1 for position again (centers the window)
This commit is contained in:
parent
81b2efaf5b
commit
e9043c93aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user