From 82f4ab803381d5b5d29f07d1fc5e016000d8dcc2 Mon Sep 17 00:00:00 2001
From: bye <bye@byecorps.com>
Date: Thu, 29 Aug 2024 15:24:32 +0100
Subject: [PATCH] never published thefix lmao

---
 src/js/main.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/js/main.js b/src/js/main.js
index 7b676ee..c667064 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -52,6 +52,21 @@ canvas.height = 240;
 canvas.setScale();
 canvas.ctx.imageSmoothingEnabled = false;
 
+const floor = Math.floor;
+const u = _=> {
+    const w = innerWidth;
+    const h = innerHeight;
+    const wS = floor(w/256);
+    const hS = floor(h/240);
+    const s=Math.min(wS,hS);
+    canvas.width = 256*s;
+    canvas.height= 240*s;
+    canvas.pixelRatio = s;
+    canvas.setScale(canvas.scale);
+    canvas.ctx.imageSmoothingEnabled = false;
+}
+u();addEventListener('resize', u, !0);
+
 engine.running = false; // Game uses this as a pause state actually
 
 // // Prerender the stars
-- 
GitLab