From 9e8e0597c4da3d2f57cd1c347a8452a62d1a6d89 Mon Sep 17 00:00:00 2001
From: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Sun, 4 Aug 2019 07:11:48 +0900
Subject: [PATCH] Resize on open

---
 desktop/sources/scripts/surface.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desktop/sources/scripts/surface.js b/desktop/sources/scripts/surface.js
index dfecd1a..1c5206a 100644
--- a/desktop/sources/scripts/surface.js
+++ b/desktop/sources/scripts/surface.js
@@ -173,7 +173,7 @@ function Surface (ronin) {
       img.src = path
       img.onload = () => {
         const rect = { x: 0, y: 0, w: img.width * ratio, h: img.height * ratio }
-        this.resize(rect)
+        this.resize(rect,true)
         this.context.drawImage(img, rect.x, rect.y, rect.w, rect.h)
         resolve()
       }