From acf76d1fc2757c05e58329dfd33329db6273719c Mon Sep 17 00:00:00 2001 From: CadenCoaster <114967401+cadenthecreator@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:38:50 -0700 Subject: [PATCH] Set default values for x and y in create function --- libs/window.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/window.lua b/libs/window.lua index 06f729f..3487190 100644 --- a/libs/window.lua +++ b/libs/window.lua @@ -53,6 +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 w = math.floor(w + 0.5) h = math.floor(h + 0.5) x = math.floor(x + 0.5)