diff --git a/libs/window.lua b/libs/window.lua index 3487190..f627550 100644 --- a/libs/window.lua +++ b/libs/window.lua @@ -53,8 +53,8 @@ end local function clamp(v, lo, hi) return (v < lo) and lo or ((v > hi) and hi or v) end function lib.create(name, w, h, x, y) - if not x then x = 1 end - if not y then y = 1 end + if not x then error("no x",2) end + if not y then error("no x",2) end w = math.floor(w + 0.5) h = math.floor(h + 0.5) x = math.floor(x + 0.5)